Skip to content

Commit b74b210

Browse files
MAGETWO-99888: equalArrays function has quadratic complexity
1 parent abbf068 commit b74b210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/utils/compare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ define([
4343
}
4444

4545
return array.every(function (value, index) {
46-
return target.indexOf(value) === index;
46+
return target[index] === value;
4747
});
4848
});
4949
}

0 commit comments

Comments
 (0)