Reference · Tiles, layouts and deals
readSlotKeysfunction
The keys a text names, "z y x", "x,-z", in order; anything that is no axis is dropped.
Import it
import { readSlotKeys } from "@johnmorrisdotca/jarajara";
Definition
function readSlotKeys(text: string | null | undefined): SlotSortKey[]
Parameters
| Name | Type | Description |
|---|---|---|
text | string | null | undefined | The unknown text or encoded record to interpret. |
Returns
SlotSortKey[]
The keys a text names, "z y x", "x,-z", in order; anything that is no axis is dropped.
Examples
import { readSlotKeys } from "@johnmorrisdotca/jarajara";
console.log(readSlotKeys("z,y,x"));[ 'z', 'y', 'x' ]What it prints (run when this page was built)