Merge branch 'Arnovsky/is-array-with-assertion' of https://github.com/Arnovsky/is into Arnovsky/is-array-with-assertion
This commit is contained in:
commit
abef4aeeac
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue