UNPKG

@ekb1zh/type

Version:

Simple tool for getting data type

13 lines (10 loc) 253 B
var typeOf = function typeOf(value) { var type = typeof value; if (type === 'object') { return !value ? 'null' : Array.isArray(value) ? 'array' : type; } else { return type; } }; export { typeOf }; //# sourceMappingURL=type.esm.js.map