Type declaration
- <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[]
- <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[]
Type of reduceAsync function.