moltres-utils
Version:
Utils for Moltres apps
30 lines (25 loc) • 760 B
JavaScript
require("core-js/modules/es6.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
*
* @function
* @since v0.0.3
* @category lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
var isPrototype = function isPrototype(value) {
var Ctor = value && value.constructor;
var proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
return value === proto;
};
var _default = isPrototype;
exports.default = _default;
//# sourceMappingURL=isPrototype.js.map
;