Reference · Game engine and table
isNumberfunction
Whether a card is a number, 0 to 9.
Import it
import { isNumber } from "@johnmorrisdotca/hitotsu";
Definition
function isNumber(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 number, 0 to 9.
Examples
import { isNumber } from "@johnmorrisdotca/hitotsu";
console.log(isNumber("R70"));trueWhat it prints (run when this page was built)