--- ruleName: use-isnan description: 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))`. optionsDescription: Not configurable. options: null optionExamples: - 'true' type: functionality optionsJSON: 'null' layout: rule title: 'Rule: use-isnan' ---