Fix typos
This commit is contained in:
@ -12,7 +12,7 @@ Checks if the given value is a number.
|
|||||||
- Use `parseFloat()` to try to convert `n` to 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.isNaN()` and logical not (`!`) operator to check if `num` is a number.
|
||||||
- Use `Number.isFinite()` to check if `num` is finite.
|
- 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
|
```js
|
||||||
const validateNumber = n => {
|
const validateNumber = n => {
|
||||||
|
|||||||
Reference in New Issue
Block a user