Use predicate[] instead of plural
This commit is contained in:
parent
b662c7cddc
commit
9e12fe7994
1 changed files with 2 additions and 2 deletions
|
|
@ -420,7 +420,7 @@ Returns `true` if `value` is an even integer.
|
|||
|
||||
Returns `true` if `value` is an odd integer.
|
||||
|
||||
##### .any(predicate | predicates[], ...values)
|
||||
##### .any(predicate | predicate[], ...values)
|
||||
|
||||
Using a single `predicate` argument, returns `true` if **any** of the input `values` returns true in the `predicate`:
|
||||
|
||||
|
|
@ -432,7 +432,7 @@ is.any(is.boolean, 'unicorns', [], new Map());
|
|||
//=> false
|
||||
```
|
||||
|
||||
Using an array of `predicates`, returns `true` if **any** of the input `values` returns true for **any** of the `predicates` provided in an array:
|
||||
Using an array of `predicate[]`, returns `true` if **any** of the input `values` returns true for **any** of the `predicates` provided in an array:
|
||||
|
||||
```js
|
||||
is.any([is.string, is.number], {}, true, '🦄');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue