Merge branch 'Arnovsky/is-array-with-assertion' of https://github.com/Arnovsky/is into Arnovsky/is-array-with-assertion

This commit is contained in:
Alex 2020-07-20 09:14:09 +03:00
commit abef4aeeac

View file

@ -93,9 +93,9 @@ Note: `is.number(NaN)` returns `false`. This intentionally deviates from `typeof
#### Built-in types
##### .array(value, assertion)
##### .array(value, assertion?)
Returns true if `value` is an array and all of it's items match the assertion.
Returns true if `value` is an array and all of its items match the assertion (if provided).
```js
is.array(value) // validate `value` is an array