Skip to content

Commit

Permalink
Fix shallowEqual, improves performance (ukrbublik#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukrbublik authored Feb 4, 2022
1 parent 05a0e1e commit b6be2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utils/stuff.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function shallowEqualArrays(arrA, arrB, deep = false) {
}

for (var i = 0; i < len; i++) {
var isEqual = deep ? shallowEqual(arrA[i], arrB[i]) : arrA[i] === arrB[i];
var isEqual = deep ? shallowEqual(arrA[i], arrB[i], deep) : arrA[i] === arrB[i];
if (!isEqual) {
return false;
}
Expand Down

0 comments on commit b6be2d7

Please sign in to comment.