File tree 1 file changed +3
-1
lines changed
1-js/05-data-types/02-number
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,9 @@ For different numeral systems:
464
464
For regular number tests:
465
465
466
466
- `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`
468
470
469
471
For converting values like `12pt` and `100px` to a number:
470
472
You can’t perform that action at this time.
0 commit comments