Files
lodash/_isPrototype.js
John-David Dalton 8166b65853 Bump to v4.6.0.
2016-02-29 23:38:21 -08:00

22 lines
529 B
JavaScript

define([], function() {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* 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`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}
return isPrototype;
});