Reference · Rolls and exact odds
withoutSetfunction
The sets without the one of that name. Returns a new list.
Import it
import { withoutSet } from "@johnmorrisdotca/korokoro";
Definition
function withoutSet(sets: readonly DiceSet[], name: string): DiceSet[]
Parameters
| Name | Type | Description |
|---|---|---|
sets | readonly DiceSet[] | The saved sets to read or update. |
name | string | The preset or saved-set name to look up or write. |
Returns
DiceSet[]
The sets without the one of that name. Returns a new list.
Examples
import { withoutSet } from "@johnmorrisdotca/korokoro";
import { makeSet } from "@johnmorrisdotca/korokoro";
const set = makeSet("Longsword", "1d8+3")!;
console.log(withoutSet([set], "Longsword").length);0What it prints (run when this page was built)