mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.7.0.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
var baseCreate = require('./_baseCreate'),
|
||||
getPrototype = require('./_getPrototype'),
|
||||
isPrototype = require('./_isPrototype');
|
||||
|
||||
/** Built-in value references. */
|
||||
var getPrototypeOf = Object.getPrototypeOf;
|
||||
|
||||
/**
|
||||
* Initializes an object clone.
|
||||
*
|
||||
@@ -13,7 +11,7 @@ var getPrototypeOf = Object.getPrototypeOf;
|
||||
*/
|
||||
function initCloneObject(object) {
|
||||
return (typeof object.constructor == 'function' && !isPrototype(object))
|
||||
? baseCreate(getPrototypeOf(object))
|
||||
? baseCreate(getPrototype(object))
|
||||
: {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user