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

isFaceCodefunction

Whether a single character names a supported tile face.

Import it

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

Definition

function isFaceCode(code: string): boolean

Parameters

NameTypeDescription
codestring

The one-character face code or tile identifier.

Returns

boolean

Whether a single character names a supported tile face.

Examples

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

console.log(isFaceCode("?"));
false

What it prints (run when this page was built)

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