mixShown関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A language's set as a page shows it: every tile with its count, the total, and which are the rarest and the commonest.
インポート
import { mixShown } from "@johnmorrisdotca/kumimoji";
定義
function mixShown(language: KumimojiLanguage): MixShown
引数
| 名前 | 型 | 説明 |
|---|---|---|
language | KumimojiLanguage | The English or Japanese tile language. |
戻り値
MixShown
A language's set as a page shows it: every tile with its count, the total, and which are the rarest and the commonest.
例
import { mixShown } from "@johnmorrisdotca/kumimoji";
import { loadTileWordsFromModule } from "@johnmorrisdotca/kumimoji/words";
await loadTileWordsFromModule("english");
console.log(mixShown("english").total);144出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。