Update isArrayLike.md

This commit is contained in:
Angelos Chalaris
2017-12-31 15:00:55 +02:00
committed by GitHub
parent 3e6ab045e3
commit 65768653dd

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) => {