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