mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
var baseCreate = require('./_baseCreate'),
|
||||
isFunction = require('./isFunction'),
|
||||
isPrototype = require('./_isPrototype');
|
||||
|
||||
/** Built-in value references. */
|
||||
@@ -13,7 +12,7 @@ var getPrototypeOf = Object.getPrototypeOf;
|
||||
* @returns {Object} Returns the initialized clone.
|
||||
*/
|
||||
function initCloneObject(object) {
|
||||
return (isFunction(object.constructor) && !isPrototype(object))
|
||||
return (typeof object.constructor == 'function' && !isPrototype(object))
|
||||
? baseCreate(getPrototypeOf(object))
|
||||
: {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user