Extend "no comparison with NaN" check to cover "Number.NaN" #52780
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
x === Number.NaN
disallow comparing with Number.NaN
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Extend check added for #49962 to include
Number.NaN
in addition to globalNaN
.π Motivating Example
π» Use Cases
Catching a developer error (incorrect NaN handling).
The text was updated successfully, but these errors were encountered: