Reference · Rules, maps and records
isWildfunction
Whether a card is one of the two wild cards.
Import it
import { isWild } from "@johnmorrisdotca/tenka";
Definition
function isWild(card: TenkaCard, map?: TenkaMap): boolean
Parameters
| Name | Type | Description |
|---|---|---|
card | number | The card index within this map’s deck. |
map (optional) | TenkaMap | The native world or Europe map to use. |
Returns
boolean
Whether a card is one of the two wild cards.
Examples
import { isWild } from "@johnmorrisdotca/tenka";
console.log(isWild(42));trueWhat it prints (run when this page was built)