Reference · Rolls and exact odds
DIE_SIDESconstant
The dice the tray offers as buttons: the polyhedral set, the thirty-sided die, and the percentile die. Any other die is reached by notation.
Import it
import { DIE_SIDES } from "@johnmorrisdotca/korokoro";
Definition
const DIE_SIDES: readonly [4, 6, 8, 10, 12, 20, 30, 100] = [4, 6, 8, 10, 12, 20, 30, 100] as const
Examples
import { DIE_SIDES } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DIE_SIDES));[
'0', '1', '2',
'3', '4', '5',
'6', '7'
]What it prints (run when this page was built)