SUITS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The suits in the order a fresh deck is sorted and a foundation row is laid out: spades, hearts, diamonds, clubs — black, red, red, black, so no two neighbours on a row of four look alike.
インポート
import { SUITS } from "@johnmorrisdotca/toranpu/deck";
定義
const SUITS: readonly Suit[] = ["spades", "hearts", "diamonds", "clubs"]
例
import { SUITS } from "@johnmorrisdotca/toranpu/deck";
console.log(SUITS);[ 'spades', 'hearts', 'diamonds', 'clubs' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。