rhine-var
Version:
Variables that support multi-user collaboration and persistence, making collaboration and variable operations as simple as possible, with strict and well-defined type hints.
19 lines (18 loc) • 521 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isObject = isObject;
exports.isArray = isArray;
exports.isMap = isMap;
exports.isObjectOrArray = isObjectOrArray;
function isObject(value) {
return value !== null && typeof value === 'object' && !Array.isArray(value);
}
function isArray(value) {
return Array.isArray(value);
}
function isMap(value) {
return value instanceof Map;
}
function isObjectOrArray(value) {
return value !== null && typeof value === 'object';
}