Skip to content

Commit

Permalink
remove explicit NaN check as NaN is not finite
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Aug 28, 2024
1 parent 39c1249 commit 61b1554
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/utils/src/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ function stringifyValue(
return '[SyntheticEvent]';
}

if (typeof value === 'number' && value !== value) {
return '[NaN]';
}

if (typeof value === 'number' && !Number.isFinite(value)) {
return `[${value}]`;
}
Expand Down

0 comments on commit 61b1554

Please sign in to comment.