- reduce<V>(it, f, start): Promise<V>
Parameters
- it: AsyncIterable<V>
- f: ((accumulator: V, current: V) => V)
- (accumulator, current): V
Returns V
- start: V
Returns Promise<V>
- reduce<V>(it, f, start): V
Parameters
- it: Iterable<V> | V[]
- f: ((accumulator: V, current: V) => V)
- (accumulator, current): V
Returns V
- start: V
Returns V
Reduce for iterables
Param: it
Iterable
Param: f
Function
Param: start
Start value
Returns