Reference · SVG faces and looks
isTileDesignNamefunction
Whether a text names one of the designs.
Import it
import { isTileDesignName } from "@johnmorrisdotca/jarajara/faces";
Definition
function isTileDesignName(text: unknown): text is TileDesignName
Parameters
| Name | Type | Description |
|---|---|---|
text | unknown | The unknown text or encoded record to interpret. |
Returns
boolean
Whether a text names one of the designs.
Examples
import { isTileDesignName } from "@johnmorrisdotca/jarajara/faces";
console.log(isTileDesignName("riichi"));trueWhat it prints (run when this page was built)