MCPcopy
hub / github.com/lodash/lodash / isPrototype

Function isPrototype

lodash.js:6473–6478  ·  view source on GitHub ↗

* 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`.

(value)

Source from the content-addressed store, hash-verified

6471 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
6472 */
6473 function isPrototype(value) {
6474 var Ctor = value && value.constructor,
6475 proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
6476
6477 return value === proto;
6478 }
6479
6480 /**
6481 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.

Callers 5

baseKeysFunction · 0.85
baseKeysInFunction · 0.85
initCloneObjectFunction · 0.85
isEmptyFunction · 0.85
lodash.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected