moltres-utils
Version:
Utils for Moltres apps
44 lines (36 loc) • 1.39 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 the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @function
* @since v0.0.3
* @category lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* isObject({}) // => true
*
* isObject([1, 2, 3]) // => true
*
* isObject(Function) // => true
*
* isObject(null) // => false
*/
var isObject = function isObject(value) {
var type = _typeof(value);
return value != null && (type == 'object' || type == 'function');
};
var _default = isObject;
exports.default = _default;
//# sourceMappingURL=isObject.js.map
;