All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rules.tslint.use-isnan.html Maven / Gradle / Ivy

Go to download

Consume reports generated by tslint for code quality. Also consume reports for code duplication (either simian or cpd). Consumes the unit/integration tests reports (generated by Jasmin) coverage report (lcov generated by Istanbul). The information generated by reports are added in Sonar

The newest version!

Details

Rule: use-isnan

Enforces use of the isNaN() function to check for NaN references instead of a comparison to the NaN constant.

Rationale

Since NaN !== NaN, comparisons with regular operators will produce unexpected results. So, instead of if (myVar === NaN), do if (isNaN(myVar)).

Config

Not configurable.

Examples
"use-isnan": true
Schema
{}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy