Use isLength in baseIsEqualDeep.

This commit is contained in:
John-David Dalton
2015-01-15 20:03:53 -08:00
committed by jdalton
parent 14e9978359
commit 4011f054d6

View File

@@ -2302,7 +2302,7 @@
if (!objIsArr) { if (!objIsArr) {
objTag = objToString.call(object); objTag = objToString.call(object);
if (typeof object.length == 'number') { if (isLength(object.length)) {
if (isArguments(object)) { if (isArguments(object)) {
object = arrayToObject(object); object = arrayToObject(object);
objTag = objectTag; objTag = objectTag;
@@ -2313,7 +2313,7 @@
} }
if (!othIsArr) { if (!othIsArr) {
othTag = objToString.call(other); othTag = objToString.call(other);
if (typeof other.length == 'number') { if (isLength(other.length)) {
if (isArguments(other)) { if (isArguments(other)) {
other = arrayToObject(other); other = arrayToObject(other);
othTag = objectTag; othTag = objectTag;