Skip to content

Commit b6a4a24

Browse files
committed
Fixed a typo :(
1 parent f46daa0 commit b6a4a24

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ export default function diff(
7474
objKey !== newObjKey &&
7575
!(
7676
// treat NaN values as equivalent
77-
Number.isNaN(objKey) &&
78-
tNumber.isNaN(newObjKey) &&
79-
areCompatibleObjects &&
80-
(isNaN(objKey)
81-
? objKey + "" === newObjKey + ""
82-
: +objKey === +newObjKey)
77+
(
78+
Number.isNaN(objKey) &&
79+
Number.isNaN(newObjKey) &&
80+
areCompatibleObjects &&
81+
(isNaN(objKey)
82+
? objKey + "" === newObjKey + ""
83+
: +objKey === +newObjKey)
84+
)
8385
)
8486
) {
8587
diffs.push({

0 commit comments

Comments
 (0)