Skip to content

Documentation / @ripl/utilities / objectReduce

Function: objectReduce() ​

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

Defined in: collection.ts:183

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