namesListfunction
Names in a list: "Ann, Ben", or "Ann、Ben" in Japanese.
Import it
import { namesList } from "@johnmorrisdotca/toranpu";
Definition
function namesList(names: readonly string[], language?: Language): string
Parameters
| Name | Type | Description |
|---|---|---|
names | readonly string[] | The player names in seat order. |
language (optional) | Language | English or Japanese for the displayed words. |
Returns
string
Names in a list: "Ann, Ben", or "Ann、Ben" in Japanese.
Examples
import { namesList } from "@johnmorrisdotca/toranpu";
console.log(namesList(["Aki", "Ben", "Cy"], "en"));Aki, Ben, CyWhat it prints (run when this page was built)