Reference · Collections and piles: pure helpers
deckLandingsconstant
The two ways a card can land, with the label on each button: face-up (still facing up) and face-down (turned over sideways on the way).
Import it
import { deckLandings } from "@johnmorrisdotca/fuda-cards/collection";
Definition
const deckLandings: readonly { id: "face-up" | "face-down"; label: string; }[] = [
{ id: "face-up", label: "Still facing up" },
{ id: "face-down", label: "Turned over" },
]
Examples
import { deckLandings } from "@johnmorrisdotca/fuda-cards/collection";
console.log(deckLandings.map((landing) => landing.id)); // [ 'face-up', 'face-down' ][ 'face-up', 'face-down' ]What it prints (run when this page was built)