vetkit.js.quality.compare-nan
Comparing with NaN is always false (or always true for !=). NaN is not equal to anything, including itself.
Last updated:
Suite: Code quality
javascript, typescript
Comparing with NaN is always false (or always true for !=). NaN is not equal to anything, including itself.
Category: QUALITY · Engine rule severity: WARNING
How to fix it
Use Number.isNaN(value).
References
Source: packages/engine/rules/quality/javascript.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.