UseReduceAsync
katanakit-js / useReduceAsync
Function: useReduceAsync()
Section titled “Function: 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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
U |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
array |
NullableArray<T> |
reducer |
(accumulator, item, index) => Promise<U> |
initial |
U |
Returns
Section titled “Returns”Promise<U>