Skip to content

Commit 5e527f3

Browse files
committed
try object.prototype that broke eslint in router
1 parent e6029db commit 5e527f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/query-core/src/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,14 @@ export function replaceEqualDeep(a: any, b: any): any {
266266
const bItems = array ? b : Object.keys(b)
267267
const bSize = bItems.length
268268
const copy: any = array ? new Array(bSize) : {}
269-
// const aItemsSet = new Set(aItems)
270269

271270
let equalItems = 0
272271

273272
for (let i = 0; i < bSize; i++) {
274273
const key = array ? i : bItems[i]
275274
const aItem = a[key]
276275
if (
277-
(array || a.hasOwnProperty(key)) &&
276+
(array || Object.prototype.hasOwnProperty.call(a, key)) &&
278277
aItem === undefined &&
279278
b[key] === undefined
280279
) {

0 commit comments

Comments
 (0)