Reference · Rolls and exact odds
isLoadedfunction
Whether a roll has a loaded die in it.
Import it
import { isLoaded } from "@johnmorrisdotca/korokoro";
Definition
function isLoaded(spec: RollSpec): boolean
Parameters
| Name | Type | Description |
|---|---|---|
spec | RollSpec | Dice counts, sides, rules and modifier; omitted fields use the documented defaults. |
Returns
boolean
Whether a roll has a loaded die in it.
Examples
import { isLoaded } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(isLoaded(parseNotation("1d6{6:3}")!));trueWhat it prints (run when this page was built)