Update isArrayLike.md

This commit is contained in:
Angelos Chalaris
2017-12-31 15:00:55 +02:00
committed by GitHub
parent 005a5112e5
commit 27e74ce5cc

View File

@ -1,6 +1,8 @@
### isArrayLike
Checks if the provided argument is `arrayLike` i.e. is iterable.
Checks if the provided argument is array-like (i.e. is iterable).
Use `Array.from()` and a `try... catch` block to check if the provided argument is array-like.
```js
const arr = (arr) => {