isWholeDeckfunction
Whether a string is a whole deck: fifty-two cards, each exactly once.
Import it
import { isWholeDeck } from "@johnmorrisdotca/toranpu/deck";
Definition
function isWholeDeck(text: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The notation, encoded state or saved text to read. |
Returns
boolean
Whether a string is a whole deck: fifty-two cards, each exactly once.
Examples
import { freshDeck, isWholeDeck, writeCards } from "@johnmorrisdotca/toranpu/deck";
console.log(isWholeDeck(writeCards(freshDeck())));trueWhat it prints (run when this page was built)