MCPcopy Create free account
hub / github.com/RubyLouvre/anu / isPrototype

Function isPrototype

test/babel.js:10263–10268  ·  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

10261 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10262 */
10263 function isPrototype(value) {
10264 var Ctor = value && value.constructor,
10265 proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
10266
10267 return value === proto;
10268 }
10269
10270 module.exports = isPrototype;
10271

Callers 4

babel.jsFile · 0.85
initCloneObjectFunction · 0.85
baseKeysFunction · 0.85
baseKeysInFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected