isWild関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether a card is one of the two wild cards.
インポート
import { isWild } from "@johnmorrisdotca/tenka";
定義
function isWild(card: TenkaCard, map?: TenkaMap): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
card | number | The card index within this map’s deck. |
map (省略可) | TenkaMap | The native world or Europe map to use. |
戻り値
boolean
Whether a card is one of the two wild cards.
例
import { isWild } from "@johnmorrisdotca/tenka";
console.log(isWild(42));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。