diff options
Diffstat (limited to 'node_modules/lodash/_baseIsEqualDeep.js')
-rw-r--r-- | node_modules/lodash/_baseIsEqualDeep.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/node_modules/lodash/_baseIsEqualDeep.js b/node_modules/lodash/_baseIsEqualDeep.js index b32f1f3ff..e3cfd6a8d 100644 --- a/node_modules/lodash/_baseIsEqualDeep.js +++ b/node_modules/lodash/_baseIsEqualDeep.js @@ -38,17 +38,12 @@ var hasOwnProperty = objectProto.hasOwnProperty; function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray(object), othIsArr = isArray(other), - objTag = arrayTag, - othTag = arrayTag; + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; - if (!objIsArr) { - objTag = getTag(object); - objTag = objTag == argsTag ? objectTag : objTag; - } - if (!othIsArr) { - othTag = getTag(other); - othTag = othTag == argsTag ? objectTag : othTag; - } var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; |