Reference · Game engine and table
isWildfunction
Whether a card is a Wild or Wild Draw Four.
Import it
import { isWild } from "@johnmorrisdotca/hitotsu";
Definition
function isWild(card: HitotsuCard): boolean
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The physical card id; null draws the back where supported. |
Returns
boolean
Whether a card is a Wild or Wild Draw Four.
Examples
import { isWild } from "@johnmorrisdotca/hitotsu";
console.log(isWild("WF0"));trueWhat it prints (run when this page was built)