Skip to content

Documentation / @ripl/utilities / objectReduce

Function: objectReduce()

objectReduce<TSource, TResult>(input, reducer, initial): TResult

Defined in: packages/utilities/src/collection.ts:191

Reduces the enumerable properties of an object into a single accumulated value.

Type Parameters

Type Parameter
TSource extends IterableObject
TResult

Parameters

ParameterType
inputTSource
reducerObjectReducer<keyof TSource, TSource[keyof TSource], TResult>
initialTResult

Returns

TResult