Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / globule / node_modules / lodash / _isPrototype.js
1 /** Used for built-in method references. */
2 var objectProto = Object.prototype;
3
4 /**
5  * Checks if `value` is likely a prototype object.
6  *
7  * @private
8  * @param {*} value The value to check.
9  * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10  */
11 function isPrototype(value) {
12   var Ctor = value && value.constructor,
13       proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
14
15   return value === proto;
16 }
17
18 module.exports = isPrototype;