Reference · Rolls and exact odds
isDieSidesfunction
One of the dice the tray has a button for.
Import it
import { isDieSides } from "@johnmorrisdotca/korokoro";
Definition
function isDieSides(value: unknown): value is DieSides
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The candidate face, value or name to check. |
Returns
boolean
One of the dice the tray has a button for.
Examples
import { isDieSides } from "@johnmorrisdotca/korokoro";
console.log(isDieSides(20), isDieSides(7));true falseWhat it prints (run when this page was built)