Reference · Tiles, Mexican Train and replay
trainSetNamefunction
The set's name, or null for a number that is no set offered.
Import it
import { trainSetName } from "@johnmorrisdotca/domino";
Definition
function trainSetName(set: number): string | null
Parameters
| Name | Type | Description |
|---|---|---|
set | number | The highest double of the supported set: 9, 12 or 15. |
Returns
string | null
The set's name, or null for a number that is no set offered.
Examples
import { trainSetName } from "@johnmorrisdotca/domino";
console.log(trainSetName(9));Double-nineWhat it prints (run when this page was built)