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

readSlotKeysfunction

The keys a text names, "z y x", "x,-z", in order; anything that is no axis is dropped.

Import it

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

Definition

function readSlotKeys(text: string | null | undefined): SlotSortKey[]

Parameters

NameTypeDescription
textstring | null | undefined

The unknown text or encoded record to interpret.

Returns

SlotSortKey[]

The keys a text names, "z y x", "x,-z", in order; anything that is no axis is dropped.

Examples

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

console.log(readSlotKeys("z,y,x"));
[ 'z', 'y', 'x' ]

What it prints (run when this page was built)

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