Reference · Rules, maps and records
cleanTenkaNamefunction
A name as the table typed it, tidied: spaces run together, trimmed, cut to TENKA_NAME_MOST.
Import it
import { cleanTenkaName } from "@johnmorrisdotca/tenka";
Definition
function cleanTenkaName(name: string): string
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The player name to clean for display. |
Returns
string
A name as the table typed it, tidied: spaces run together, trimmed, cut to TENKA_NAME_MOST.
Examples
import { cleanTenkaName } from "@johnmorrisdotca/tenka";
console.log(cleanTenkaName(" Seat 1 "));Seat 1What it prints (run when this page was built)