any
Summary
True if given predicate returned logical true for at least one element of the list.
Tip
This function is curried.
Examples
Check that a list does contain at least one 'x'.
1 2 3 4 5 6 7 | |
Parameters
| Name | Type | Description |
|---|---|---|
| pred | function |
Predicate |
| xs | Array or Object |
List of values |
Return
boolean