Add Number.isNaN and Number.isFinite to the summary

This commit is contained in:
Alexey Chilipenko 2022-08-11 19:40:26 +03:00 committed by GitHub
parent abaaae5f28
commit 7df4cbbffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -464,7 +464,9 @@ For different numeral systems:
For regular number tests: For regular number tests:
- `isNaN(value)` converts its argument to a number and then tests it for being `NaN` - `isNaN(value)` converts its argument to a number and then tests it for being `NaN`
- `isFinite(value)` converts its argument to a number and returns `true` if it's a regular number, not `NaN/Infinity/-Infinity` - `Number.isNaN(value)` checks whether its argument belongs to the `number` type, and if so, tests it for being `NaN`
- `isFinite(value)` converts its argument to a number and then tests it for not being `NaN/Infinity/-Infinity`
- `Number.isFinite(value)` checks whether its argument belongs to the `number` type, and if so, tests it for not being `NaN/Infinity/-Infinity`
For converting values like `12pt` and `100px` to a number: For converting values like `12pt` and `100px` to a number: