- forEach<Item>(callback: Unary<Item, void>): (<Iterable>(iterable: Iterable) => ReducerOutput<Iterable, void>)
-
Parameters
-
callback: Unary<Item, void>
Returns (<Iterable>(iterable: Iterable) => ReducerOutput<Iterable, void>)
-
- <Iterable>(iterable: Iterable): ReducerOutput<Iterable, void>
-
Type Parameters
-
Iterable extends AsynchronousIterable<Item>
For each function for iterables and asynchronous iterables.
Example
Returns
Curried function that expects an iterable to loop over and has
callback
set in context.