Reference · Rules, tiles and records
unpackTileWordsfunction
The English list read from its packed data: every word, the words by length, the set's mix, and the functions that turn tiles into words.
Import it
import { unpackTileWords } from "@johnmorrisdotca/kumimoji";
Definition
function unpackTileWords(data: Readonly<Record<number, string>>): TileWords
Parameters
| Name | Type | Description |
|---|---|---|
data | Readonly<Record<number, string>> | The packed language-list data to decode. |
Returns
TileWords
The English list read from its packed data: every word, the words by length, the set's mix, and the functions that turn tiles into words.
Examples
import { unpackTileWords } from "@johnmorrisdotca/kumimoji";
console.log(unpackTileWords({3:"0cat2r"}).allowed.has("cat"));trueWhat it prints (run when this page was built)