Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 956 Bytes

polyethylene.polyasynciterable.every.md

File metadata and controls

30 lines (17 loc) · 956 Bytes

Home > polyethylene > PolyAsyncIterable > every

PolyAsyncIterable.every() method

Returns true if calling func(element) returns true for every element, and false otherwise

Signature:

every(func: AsyncIndexedPredicate<T>): Promise<boolean>;

Parameters

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.

Remarks

If a call to func(element) returns false, no more elements are iterated.