Reference · Tile and table elements
allowanceOffunction
Read an allowance from an attribute: nothing or unlimited is no limit, off or 0 is none, a number is that many.
Import it
import { allowanceOf } from "@johnmorrisdotca/jarajara/element";
Definition
function allowanceOf(text: string | null): Allowance
Parameters
| Name | Type | Description |
|---|---|---|
text | string | null | The unknown text or encoded record to interpret. |
Returns
Allowance
Read an allowance from an attribute: nothing or unlimited is no limit, off or 0 is none, a number is that many.
Examples
import { allowanceOf } from "@johnmorrisdotca/jarajara/element";
console.log(allowanceOf("3"));3What it prints (run when this page was built)