Members
(static, constant) ARRAY
get string "array"
Example
import {ARRAY} from "@daybrush/utils";
console.log(ARRAY); // "array"
(static) document
Check whether the environment is window or node.js.
Example
import {IS_WINDOW} from "@daybrush/utils";
console.log(IS_WINDOW); // false in node.js
console.log(IS_WINDOW); // true in browser
(static, constant) FUNCTION
get string "function"
Example
import {FUNCTION} from "@daybrush/utils";
console.log(FUNCTION); // "function"
(static, constant) IS_WINDOW
Check whether the environment is window or node.js.
Example
import {IS_WINDOW} from "@daybrush/utils";
console.log(IS_WINDOW); // false in node.js
console.log(IS_WINDOW); // true in browser
(static, constant) NUMBER
get string "number"
Example
import {NUMBER} from "@daybrush/utils";
console.log(NUMBER); // "number"
(static, constant) OBJECT
get string "object"
Example
import {OBJECT} from "@daybrush/utils";
console.log(OBJECT); // "object"
(static, constant) PROPERTY
get string "property"
Example
import {PROPERTY} from "@daybrush/utils";
console.log(PROPERTY); // "property"
(static, constant) STRING
get string "string"
Example
import {STRING} from "@daybrush/utils";
console.log(STRING); // "string"
(static, constant) UNDEFINED
get string "undefined"
Example
import {UNDEFINED} from "@daybrush/utils";
console.log(UNDEFINED); // "undefined"