Reference · Tiles, layouts and deals
isFaceCodefunction
Whether a single character names a supported tile face.
Import it
import { isFaceCode } from "@johnmorrisdotca/jarajara";
Definition
function isFaceCode(code: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The one-character face code or tile identifier. |
Returns
boolean
Whether a single character names a supported tile face.
Examples
import { isFaceCode } from "@johnmorrisdotca/jarajara";
console.log(isFaceCode("?"));falseWhat it prints (run when this page was built)