Reference · The realistic Earth's pure parts
readSeaNamesfunction
Reads the sea-names attribute. Absent or off is off. A bare attribute, or any other value, is on.
Import it
import { readSeaNames } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function readSeaNames(value: string | null): boolean
Parameters
| Name | Type | Description |
|---|---|---|
value | string | null | The attribute's value, or null when it is absent. |
Returns
boolean
Whether the names are on.
Examples
import { readSeaNames } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(readSeaNames(null), readSeaNames(""), readSeaNames("off"));false true falseWhat it prints (run when this page was built)