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