Skip to content

UseReduceAsync

katanakit-js / useReduceAsync

function useReduceAsync<T, U>(
array,
reducer,
initial
): Promise<U>;

Defined in: core/services/array.service.ts:585

Async reduce, sequential. See ArrayService.useReduceAsync.

Type Parameter
T
U
Parameter Type
array NullableArray<T>
reducer (accumulator, item, index) => Promise<U>
initial U

Promise<U>