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) {
objTag = objToString.call(object);
if (typeof object.length == 'number') {
if (isLength(object.length)) {
if (isArguments(object)) {
object = arrayToObject(object);
objTag = objectTag;
@@ -2313,7 +2313,7 @@
}
if (!othIsArr) {
othTag = objToString.call(other);
if (typeof other.length == 'number') {
if (isLength(other.length)) {
if (isArguments(other)) {
other = arrayToObject(other);
othTag = objectTag;