Fix typos

This commit is contained in:
Chalarangelo
2022-09-04 14:05:35 +03:00
parent 126134a489
commit 7f73863f08

View File

@ -12,7 +12,7 @@ Checks if the given value is a number.
- Use `parseFloat()` to try to convert `n` to a number.
- Use `Number.isNaN()` and logical not (`!`) operator to check if `num` is a number.
- Use `Number.isFinite()` to check if `num` is finite.
- Use `Number()` and the loose equality operator (`==`) to check if the coercion holds.
- Use `Number` and the loose equality operator (`==`) to check if the coercion holds.
```js
const validateNumber = n => {