Consts

Consts

Source:

Members

(static, constant) ARRAY

Source:
get string "array"
Example
import {ARRAY} from "@daybrush/utils";

console.log(ARRAY); // "array"

(static) document

Source:
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

Source:
get string "function"
Example
import {FUNCTION} from "@daybrush/utils";

console.log(FUNCTION); // "function"

(static, constant) IS_WINDOW

Source:
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

Source:
get string "number"
Example
import {NUMBER} from "@daybrush/utils";

console.log(NUMBER); // "number"

(static, constant) OBJECT

Source:
get string "object"
Example
import {OBJECT} from "@daybrush/utils";

console.log(OBJECT); // "object"

(static, constant) PROPERTY

Source:
get string "property"
Example
import {PROPERTY} from "@daybrush/utils";

console.log(PROPERTY); // "property"

(static, constant) STRING

Source:
get string "string"
Example
import {STRING} from "@daybrush/utils";

console.log(STRING); // "string"

(static, constant) UNDEFINED

Source:
get string "undefined"
Example
import {UNDEFINED} from "@daybrush/utils";

console.log(UNDEFINED); // "undefined"