Skip to content

Commit

Permalink
Fixed a typo :(
Browse files Browse the repository at this point in the history
  • Loading branch information
AsyncBanana committed Mar 19, 2024
1 parent f46daa0 commit b6a4a24
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ export default function diff(
objKey !== newObjKey &&
!(
// treat NaN values as equivalent
Number.isNaN(objKey) &&
tNumber.isNaN(newObjKey) &&
areCompatibleObjects &&
(isNaN(objKey)
? objKey + "" === newObjKey + ""
: +objKey === +newObjKey)
(
Number.isNaN(objKey) &&
Number.isNaN(newObjKey) &&
areCompatibleObjects &&
(isNaN(objKey)
? objKey + "" === newObjKey + ""
: +objKey === +newObjKey)
)
)
) {
diffs.push({
Expand Down

0 comments on commit b6a4a24

Please sign in to comment.