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