Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · Tiles, layouts and deals

isNotationfunction

Whether a text is written as hand notation, 123m456p: nothing but digit runs each closed by a suit letter.

Import it

import { isNotation } from "@johnmorrisdotca/jarajara";

Definition

function isNotation(text: string): boolean

Parameters

NameTypeDescription
textstring

The unknown text or encoded record to interpret.

Returns

boolean

Whether a text is written as hand notation, 123m456p: nothing but digit runs each closed by a suit letter.

Examples

import { isNotation } from "@johnmorrisdotca/jarajara";

console.log(isNotation("123m"));
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.