The type of elements in the input iterable.
The type of the output value. Defaults to T
.
An asynchronous reducer function that takes the accumulator, a value, and its index.
Optional
initialValue: UOptional. The initial value of the accumulator. If not provided, the first value of the iterable is used.
Generated using TypeDoc
Reduces an input iterable to a single value using an asynchronous reducer function.
Returns
A function that accepts an input iterable and returns a Promise that resolves to the reduced value.
Example