Update isArrayLike.md

This commit is contained in:
Angelos Chalaris
2017-12-31 15:02:05 +02:00
committed by GitHub
parent 8e28d90220
commit 8214ee3bec

View File

@ -5,7 +5,7 @@ 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) => {
const isArrayLike = arr => {
try{
Array.from(arr);
return true;