@maverick-js/compiler
Version:
Maverick toolchain including the analyzer and compiler.
22 lines (20 loc) • 506 B
JavaScript
// src/utils/unit.ts
function isNull(value) {
return value === null;
}
function isUndefined(value) {
return typeof value === "undefined";
}
function isObject(value) {
return (value == null ? void 0 : value.constructor) === Object;
}
function isString(value) {
return typeof value === "string";
}
function isFunction(value) {
return typeof value === "function";
}
function isArray(value) {
return Array.isArray(value);
}
export { isArray, isFunction, isNull, isObject, isString, isUndefined };