Reference · Rules, tiles and records
tidyNamefunction
A name as kept: trimmed, one line, and no longer than a line holds.
Import it
import { tidyName } from "@johnmorrisdotca/kumimoji";
Definition
function tidyName(name: string): string
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The local player name to tidy. |
Returns
string
A name as kept: trimmed, one line, and no longer than a line holds.
Examples
import { tidyName } from "@johnmorrisdotca/kumimoji";
console.log(tidyName(" Seat 1 "));Seat 1What it prints (run when this page was built)