Skip to content

Commit 7df4cbb

Browse files
authored
Add Number.isNaN and Number.isFinite to the summary
1 parent abaaae5 commit 7df4cbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

1-js/05-data-types/02-number/article.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ For different numeral systems:
464464
For regular number tests:
465465

466466
- `isNaN(value)` converts its argument to a number and then tests it for being `NaN`
467-
- `isFinite(value)` converts its argument to a number and returns `true` if it's a regular number, not `NaN/Infinity/-Infinity`
467+
- `Number.isNaN(value)` checks whether its argument belongs to the `number` type, and if so, tests it for being `NaN`
468+
- `isFinite(value)` converts its argument to a number and then tests it for not being `NaN/Infinity/-Infinity`
469+
- `Number.isFinite(value)` checks whether its argument belongs to the `number` type, and if so, tests it for not being `NaN/Infinity/-Infinity`
468470

469471
For converting values like `12pt` and `100px` to a number:
470472

0 commit comments

Comments
 (0)