all
Summary
Returns true
if predicate passed for all elements of the list.
Tip
This function is curried.
Examples
Returns true
if all elements of a list are equal to x
:
1 2 3 4 5 6 7 8 9 10 11 |
|
Parameters
Name | Type | Description |
---|---|---|
pred | function |
Predicate |
xs | Array or Object |
List of values |
Return
boolean