* 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)
| 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 |
no outgoing calls
no test coverage detected