Type alias IndexedOperator<InputType, ResultType>
IndexedOperator<InputType, ResultType>: ((index: number, acc: ResultType, element: InputType) => ResultType | Promise<ResultType>)
Type declaration
-
- (index: number, acc: ResultType, element: InputType): ResultType | Promise<ResultType>
-
Parameters
-
index: number
-
acc: ResultType
-
element: InputType
Returns ResultType | Promise<ResultType>