readNotation関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { readNotation } from "@johnmorrisdotca/jarajara";
定義
function readNotation(text: string): string[] | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | The unknown text or encoded record to interpret. |
戻り値
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).
例
import { readNotation } from "@johnmorrisdotca/jarajara";
console.log(readNotation("123m456p"));[ 'a', 'b', 'c', 'm', 'n', 'o' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。