Reference · Tiles, layouts and deals
readNotationfunction
The tiles a hand's notation writes, as codes in the order written; null when the text is not notation or names a tile there is not (8z).
Import it
import { readNotation } from "@johnmorrisdotca/jarajara";
Definition
function readNotation(text: string): string[] | null
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The unknown text or encoded record to interpret. |
Returns
string[] | null
The tiles a hand's notation writes, as codes in the order written; null when the text is not notation or names a tile there is not (8z).
Examples
import { readNotation } from "@johnmorrisdotca/jarajara";
console.log(readNotation("123m456p"));[ 'a', 'b', 'c', 'm', 'n', 'o' ]What it prints (run when this page was built)