UNPKG

@ekb1zh/type

Version:

Simple tool for getting data type

17 lines (12 loc) 350 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var typeOf = function typeOf(value) { var type = typeof value; if (type === 'object') { return !value ? 'null' : Array.isArray(value) ? 'array' : type; } else { return type; } }; exports.typeOf = typeOf; //# sourceMappingURL=type.cjs.development.js.map