1
0
Fork 0
mirror of synced 2024-09-18 10:20:11 +12:00
budibase/packages/frontend-core/node_modules/lodash/_isPrototype.js
2022-01-18 09:39:19 +00:00

18 lines
480 B
JavaScript

/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}
module.exports = isPrototype;