Travis build: 743 [ci skip]

This commit is contained in:
Travis CI
2017-12-31 15:49:44 +00:00
parent 5869c4a78e
commit 7f3d62a41e
3 changed files with 21 additions and 21 deletions

View File

@ -5,8 +5,12 @@ Checks if the provided argument is array-like (i.e. is iterable).
Check that the object is not a function or `null` and that its `length` property is a non-negative integer below `Number.MAX_SAFE_INTEGER`.
```js
const isArrayLike = val =>
val != null && typeof val != 'function' && val.length > -1 && val.length % 1 == 0 && val.length <= Number.MAX_SAFE_INTEGER;
const isArrayLike = val =>
val != null &&
typeof val != 'function' &&
val.length > -1 &&
val.length % 1 == 0 &&
val.length <= Number.MAX_SAFE_INTEGER;
```
```js