withoutSet関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The sets without the one of that name. Returns a new list.
インポート
import { withoutSet } from "@johnmorrisdotca/korokoro";
定義
function withoutSet(sets: readonly DiceSet[], name: string): DiceSet[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
sets | readonly DiceSet[] | The saved sets to read or update. |
name | string | The preset or saved-set name to look up or write. |
戻り値
DiceSet[]
The sets without the one of that name. Returns a new list.
例
import { withoutSet } from "@johnmorrisdotca/korokoro";
import { makeSet } from "@johnmorrisdotca/korokoro";
const set = makeSet("Longsword", "1d8+3")!;
console.log(withoutSet([set], "Longsword").length);0出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。