moltres-utils
Version:
Utils for Moltres apps
40 lines (33 loc) • 1.28 kB
JavaScript
require("core-js/modules/es6.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("core-js/modules/es7.symbol.async-iterator");
require("core-js/modules/es6.symbol");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/**
* Checks if `value` is object-like. A value is object-like if it's not `null` and has a `typeof` result of "object".
*
* @function
* @since v0.0.3
* @category lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* isObjectLike({}) // => true
*
* isObjectLike([1, 2, 3]) // => true
*
* isObjectLike(Function) // => false
*
* isObjectLike(null) // => false
*/
var isObjectLike = function isObjectLike(value) {
return _typeof(value) == 'object' && value !== null;
};
var _default = isObjectLike;
exports.default = _default;
//# sourceMappingURL=isObjectLike.js.map
;