Add tag checks back to baseIsEqualDeep.

This commit is contained in:
John-David Dalton
2015-09-11 18:02:49 -07:00
parent 6edde288ee
commit 875dfec570

View File

@@ -2268,7 +2268,7 @@
objTag = isMap(object) ? mapTag : (isSet(object) ? setTag : objTag); objTag = isMap(object) ? mapTag : (isSet(object) ? setTag : objTag);
} else if (objTag == argsTag) { } else if (objTag == argsTag) {
objTag = objectTag; objTag = objectTag;
} else { } else if (objTag != objectTag) {
objIsArr = isTypedArray(object); objIsArr = isTypedArray(object);
} }
} }
@@ -2278,7 +2278,7 @@
othTag = isMap(other) ? mapTag : (isSet(other) ? setTag : othTag); othTag = isMap(other) ? mapTag : (isSet(other) ? setTag : othTag);
} else if (othTag == argsTag) { } else if (othTag == argsTag) {
othTag = objectTag; othTag = objectTag;
} else { } else if (othTag != objectTag) {
othIsArr = isTypedArray(other); othIsArr = isTypedArray(other);
} }
} }