- reduceAsync<T>(array, reducer): MaybePromise<T>
Parameters
reducer: ((previousValue, currentValue, currentIndex, array) => MaybePromise<T>)
- (previousValue, currentValue, currentIndex, array): MaybePromise<T>
Parameters
previousValue: T
currentValue: T
currentIndex: number
array: T[]
- reduceAsync<T, U>(array, reducer, initialValue): MaybePromise<U>
Parameters
reducer: ((previousValue, currentValue, currentIndex, array) => MaybePromise<U>)
- (previousValue, currentValue, currentIndex, array): MaybePromise<U>
Parameters
previousValue: U
currentValue: T
currentIndex: number
array: T[]
Reduces a MaybePromise of array using a maybe-async reducer function.