Travis build: 771 [ci skip]

This commit is contained in:
Travis CI
2018-01-01 12:48:54 +00:00
parent e60bf73450
commit 5a22bd0909
3 changed files with 13 additions and 14 deletions

View File

@ -5,6 +5,7 @@ Checks if the provided argument is array-like (i.e. is iterable).
Use the spread operator (`...`) to check if the provided argument is iterable inside a `try... catch` block and the comma operator (`,`) to return the appropriate value.
```js
const isArrayLike = val =>
try {return [...val], true; }
catch (e) { return false; }