duplicate value in variable (#22390)

This commit is contained in:
BIKI DAS
2021-10-11 18:50:15 +05:30
committed by GitHub
parent afcb9cdc93
commit 55d75005bc

View File

@@ -38,9 +38,10 @@ function shallowEqual(objA: mixed, objB: mixed): boolean {
// Test for A's keys different from B.
for (let i = 0; i < keysA.length; i++) {
const currentKey = keysA[i];
if (
!hasOwnProperty.call(objB, keysA[i]) ||
!is(objA[keysA[i]], objB[keysA[i]])
!hasOwnProperty.call(objB, currentKey) ||
!is(objA[currentKey], objB[currentKey])
) {
return false;
}