Reference · The realistic Earth's pure parts
readGridfunction
A grid attribute: absent (or off) draws none, anything else draws it.
Import it
import { readGrid } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function readGrid(value: string | null): boolean
Parameters
| Name | Type | Description |
|---|---|---|
value | string | null | The attribute's text, or |
Returns
boolean
Whether the grid is drawn.
Examples
import { readGrid } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(readGrid(null), readGrid(""), readGrid("off"));false true falseWhat it prints (run when this page was built)