isCardfunction
Whether this is one of the fifty-two names.
Import it
import { isCard } from "@johnmorrisdotca/toranpu";
Definition
function isCard(value: unknown): value is CardId
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The unknown value to validate. |
Returns
boolean
Whether this is one of the fifty-two names.
Examples
import { isCard } from "@johnmorrisdotca/toranpu";
console.log(isCard("AS"));trueWhat it prints (run when this page was built)