We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfea65a commit b25ceccCopy full SHA for b25cecc
src/vanilla/shallow.ts
@@ -39,7 +39,7 @@ export function shallow<T>(objA: T, objB: T) {
39
}
40
for (let i = 0; i < keysA.length; i++) {
41
if (
42
- !Object.prototype.hasOwnProperty.call(objB, keysA[i] as string) ||
+ !Object.hasOwn(objB, keysA[i] as string) ||
43
!Object.is(objA[keysA[i] as keyof T], objB[keysA[i] as keyof T])
44
) {
45
return false
0 commit comments