CallBackReduce
CallBackReduce<T, R>: (accumulator: T | R, value: T, index?: undefined | number, collection?: T[]) => Promise<T | R>
Type parameters
Type declaration
-
- (accumulator: T | R, value: T, index?: undefined | number, collection?: T[]): Promise<T | R>
-
Parameters
-
accumulator: T | R
-
value: T
-
Optional index: undefined | number
-
Optional collection: T[]
Returns Promise<T | R>
returns any type value