wordKey関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The key a game's words are kept under: its id with underscores for hyphens (game_tube_sort, rules_tube_sort).
インポート
import { wordKey } from "@johnmorrisdotca/karakuri";
定義
function wordKey(game: string): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
game | string | One of the native KARAKURI_GAME_IDS. |
戻り値
string
The key a game's words are kept under: its id with underscores for hyphens (game_tube_sort, rules_tube_sort).
例
import { wordKey } from "@johnmorrisdotca/karakuri";
console.log(wordKey("tube-sort"));tube_sort出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。