mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v3.8.0.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
var arrayCopy = require('./arrayCopy'),
|
||||
getLength = require('./getLength'),
|
||||
isArguments = require('../lang/isArguments'),
|
||||
isArray = require('../lang/isArray'),
|
||||
isLength = require('./isLength'),
|
||||
isArrayLike = require('./isArrayLike'),
|
||||
isPlainObject = require('../lang/isPlainObject'),
|
||||
isTypedArray = require('../lang/isTypedArray'),
|
||||
toPlainObject = require('../lang/toPlainObject');
|
||||
@@ -38,10 +37,10 @@ function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stack
|
||||
|
||||
if (isCommon) {
|
||||
result = srcValue;
|
||||
if (isLength(srcValue.length) && (isArray(srcValue) || isTypedArray(srcValue))) {
|
||||
if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
|
||||
result = isArray(value)
|
||||
? value
|
||||
: (getLength(value) ? arrayCopy(value) : []);
|
||||
: (isArrayLike(value) ? arrayCopy(value) : []);
|
||||
}
|
||||
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
||||
result = isArguments(value)
|
||||
|
||||
Reference in New Issue
Block a user