Remove isFunction use.

This commit is contained in:
John-David Dalton
2017-02-24 23:34:08 -08:00
parent 37f168d466
commit ffcb38f74d
4 changed files with 6 additions and 8 deletions

View File

@@ -6,7 +6,6 @@ import initCloneObject from './initCloneObject.js'
import isArguments from '../isArguments.js'
import isArrayLikeObject from '../isArrayLikeObject.js'
import isBuffer from '../isBuffer.js'
import isFunction from '../isFunction.js'
import isObject from '../isObject.js'
import isPlainObject from '../isPlainObject.js'
import isTypedArray from '../isTypedArray.js'
@@ -72,7 +71,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
if (isArguments(objValue)) {
newValue = toPlainObject(objValue)
}
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
else if ((srcIndex && typeof objValue == 'function') || !isObject(objValue)) {
newValue = initCloneObject(srcValue)
}
}