From 7df4cbbffab8c74939a0a26f03975e075ece97b9 Mon Sep 17 00:00:00 2001 From: Alexey Chilipenko <5251053+chilipenko@users.noreply.github.com> Date: Thu, 11 Aug 2022 19:40:26 +0300 Subject: [PATCH] Add Number.isNaN and Number.isFinite to the summary --- 1-js/05-data-types/02-number/article.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/1-js/05-data-types/02-number/article.md b/1-js/05-data-types/02-number/article.md index 37980e41..3f5df960 100644 --- a/1-js/05-data-types/02-number/article.md +++ b/1-js/05-data-types/02-number/article.md @@ -464,7 +464,9 @@ For different numeral systems: For regular number tests: - `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: