noodl-loader
Version:
Loader for noodl applications
22 lines • 591 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function typeOf(value) {
const type = typeof value;
switch (type) {
case 'boolean':
case 'function':
case 'number':
case 'string':
return type;
case 'object':
if (Array.isArray(value))
return 'array';
if (value === null)
return 'null';
return type;
default:
return undefined;
}
}
exports.default = typeOf;
//# sourceMappingURL=type-of.js.map