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 · Shared Awase table

tidySeatNamefunction

A name as kept: trimmed, one line, and no longer than a line holds.

Import it

import { tidySeatName } from "@johnmorrisdotca/jarajara/table";

Definition

function tidySeatName(name: string): string

Parameters

NameTypeDescription
namestring

The local seat name, back name or design name specified by this signature.

Returns

string

A name as kept: trimmed, one line, and no longer than a line holds.

Examples

import { tidySeatName } from "@johnmorrisdotca/jarajara/table";

console.log(tidySeatName("  Seat  1  "));
Seat 1

What it prints (run when this page was built)

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