Skip to content

UseReduce

katanakit-js / useReduce

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

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

Folds into a single value. See ArrayService.useReduce.

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

U