isCardListfunction
A list of card names, checked for shape only: whether they are cards the game holds is the rules' to say.
Import it
import { isCardList } from "@johnmorrisdotca/toranpu";
Definition
function isCardList(value: unknown): value is string[]
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The unknown value to validate. |
Returns
boolean
A list of card names, checked for shape only: whether they are cards the game holds is the rules' to say.
Examples
import { isCardList } from "@johnmorrisdotca/toranpu";
console.log(isCardList(["AS", "KH"]));trueWhat it prints (run when this page was built)