Reference · Tiles, layouts and deals
isTileGroupfunction
Whether a text names a group.
Import it
import { isTileGroup } from "@johnmorrisdotca/jarajara";
Definition
function isTileGroup(text: unknown): text is TileGroup
Parameters
| Name | Type | Description |
|---|---|---|
text | unknown | The unknown text or encoded record to interpret. |
Returns
boolean
Whether a text names a group.
Examples
import { isTileGroup } from "@johnmorrisdotca/jarajara";
console.log(isTileGroup("dragons"));trueWhat it prints (run when this page was built)