From 783e03ffa304b1f037fee5218b158ecb5907c2c1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 23 Nov 2016 12:13:23 -0600 Subject: [PATCH] Simplify `baseIsEqualDeep` now that `getSymbols` returns only enumerable symbols. --- lodash.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lodash.js b/lodash.js index 4c9413215..030fd0e46 100644 --- a/lodash.js +++ b/lodash.js @@ -3307,14 +3307,9 @@ objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - if (objTag == argsTag) { - objTag = objectTag; - object = copyObject(object, keys(object)); - } - if (othTag == argsTag) { - othTag = objectTag; - other = copyObject(other, keys(other)); - } + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;