Update formatting
This commit is contained in:
@ -8,7 +8,7 @@ lastUpdated: 2020-10-22T20:23:26+03:00
|
||||
Checks if the given value is a number.
|
||||
|
||||
- Use `parseFloat()` to try to convert `n` to a number.
|
||||
- Use `!Number.isNaN()` 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()` and the loose equality operator (`==`) to check if the coercion holds.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user