Skip to content

Commit 9eefc8f

Browse files
authored
docs: fix typos in use-isnan (#19190)
1 parent 0c8cea8 commit 9eefc8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/rules/use-isnan.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ In JavaScript, `NaN` is a special value of the `Number` type. It's used to repre
99

1010
Because `NaN` is unique in JavaScript by not being equal to anything, including itself, the results of comparisons to `NaN` are confusing:
1111

12-
* `NaN === NaN` or `NaN == NaN` evaluate to false
13-
* `NaN !== NaN` or `NaN != NaN` evaluate to true
12+
* `NaN === NaN` or `NaN == NaN` evaluate to `false`
13+
* `NaN !== NaN` or `NaN != NaN` evaluate to `true`
1414

1515
Therefore, use `Number.isNaN()` or global `isNaN()` functions to test whether a value is `NaN`.
1616

1717
## Rule Details
1818

19-
This rule disallows comparisons to 'NaN'.
19+
This rule disallows comparisons to `NaN`.
2020

2121
Examples of **incorrect** code for this rule:
2222

0 commit comments

Comments
 (0)