mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import isFunction from './isFunction';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
@@ -12,7 +10,7 @@ var objectProto = Object.prototype;
|
||||
*/
|
||||
function isPrototype(value) {
|
||||
var Ctor = value && value.constructor,
|
||||
proto = (isFunction(Ctor) && Ctor.prototype) || objectProto;
|
||||
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
||||
|
||||
return value === proto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user