Home > polyethylene > PolyAsyncIterable > every
Returns true
if calling func(element)
returns true
for every element, and false
otherwise
Signature:
every(func: AsyncIndexedPredicate<T>): Promise<boolean>;
Parameter | Type | Description |
---|---|---|
func | AsyncIndexedPredicate<T> | A function to be called on the elements of the iteration |
Returns:
Promise<boolean>
A promise to whether calling func
returned true
for all elements.
If a call to func(element)
returns false
, no more elements are iterated.