Reference · Rolls and exact odds
isSidesfunction
Any die this package can throw: two to a thousand sides, or a Fate die.
Import it
import { isSides } from "@johnmorrisdotca/korokoro";
Definition
function isSides(value: unknown): value is Sides
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The candidate face, value or name to check. |
Returns
boolean
Any die this package can throw: two to a thousand sides, or a Fate die.
Examples
import { isSides } from "@johnmorrisdotca/korokoro";
console.log(isSides(7), isSides("F"));true trueWhat it prints (run when this page was built)