Optimize baseIsEqual for arrays.

This commit is contained in:
John-David Dalton
2014-12-09 21:53:11 -08:00
parent b70bafaf51
commit a8e31469c5

View File

@@ -2266,9 +2266,9 @@
(valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object'))) {
return false;
}
var valClass = toString.call(value),
var valClass = isArray(value) ? arrayClass : toString.call(value),
valIsArg = valClass == argsClass,
othClass = toString.call(other),
othClass = isArray(other) ? arrayClass : toString.call(other),
othIsArg = othClass == argsClass;
if (valIsArg) {