From b6be2d7cbe7d98c292dc554ba9051e73da1a529c Mon Sep 17 00:00:00 2001 From: Denis Oblogin Date: Fri, 4 Feb 2022 16:04:44 +0200 Subject: [PATCH] Fix shallowEqual, improves performance (#631) --- modules/utils/stuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/utils/stuff.js b/modules/utils/stuff.js index 03fc66eb9..89fc9e2b1 100644 --- a/modules/utils/stuff.js +++ b/modules/utils/stuff.js @@ -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; }