Reference · Game engine and table
isHitotsuCardfunction
Whether an unknown value is an actual physical card id from the deck.
Import it
import { isHitotsuCard } from "@johnmorrisdotca/hitotsu";
Definition
function isHitotsuCard(value: unknown): value is HitotsuCard
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The unknown card, move or rules value to validate. |
Returns
boolean
Whether an unknown value is an actual physical card id from the deck.
Examples
import { isHitotsuCard } from "@johnmorrisdotca/hitotsu";
console.log(isHitotsuCard("R70"));trueWhat it prints (run when this page was built)