isCardFacefunction
Whether a text is a card a face can be drawn for: QS, TD, a joker (RJ, BJ), a rules card (R1, R2) or the blank (BL).
Import it
import { isCardFace } from "@johnmorrisdotca/toranpu/card-faces";
Definition
function isCardFace(text: unknown): text is string
Parameters
| Name | Type | Description |
|---|---|---|
text | unknown | The notation, encoded state or saved text to read. |
Returns
boolean
Whether a text is a card a face can be drawn for: QS, TD, a joker (RJ, BJ), a rules card (R1, R2) or the blank (BL).
Examples
import { isCardFace } from "@johnmorrisdotca/toranpu/card-faces";
console.log(isCardFace("AS"));trueWhat it prints (run when this page was built)