cardOffunction
The card of this rank and suit.
Import it
import { cardOf } from "@johnmorrisdotca/toranpu";
Definition
function cardOf(rank: CardRank, suit: CardSuit): CardId
Parameters
| Name | Type | Description |
|---|---|---|
rank | Rank | The card rank to inspect or name. |
suit | CardSuit | The card suit to compare or name. |
Returns
string
The card of this rank and suit.
Examples
import { cardOf } from "@johnmorrisdotca/toranpu";
console.log(cardOf(1, "S"));ASWhat it prints (run when this page was built)