From 65768653dd82e950d8bf2cda18d00f44d595768f Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 31 Dec 2017 15:00:55 +0200 Subject: [PATCH] Update isArrayLike.md --- snippets/isArrayLike.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/isArrayLike.md b/snippets/isArrayLike.md index 2a5c9ad09..4230bd58d 100644 --- a/snippets/isArrayLike.md +++ b/snippets/isArrayLike.md @@ -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) => {