DIE_SIDES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { DIE_SIDES } from "@johnmorrisdotca/korokoro";
定義
const DIE_SIDES: readonly [4, 6, 8, 10, 12, 20, 30, 100] = [4, 6, 8, 10, 12, 20, 30, 100] as const
例
import { DIE_SIDES } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DIE_SIDES));[
'0', '1', '2',
'3', '4', '5',
'6', '7'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。