Fully renamed and updated everything, tagged, built
This commit is contained in:
11
snippets/isNumber.md
Normal file
11
snippets/isNumber.md
Normal file
@ -0,0 +1,11 @@
|
||||
### isNumber
|
||||
|
||||
Checks if the given argument is a number.
|
||||
|
||||
Use `typeof` to check if a value is classified as a number primitive.
|
||||
|
||||
```js
|
||||
const isNumber = val => typeof val === 'number';
|
||||
// isNumber('1') -> false
|
||||
// isNumber(1) -> true
|
||||
```
|
||||
Reference in New Issue
Block a user