Skip to content

Documentation / @ripl/utilities / ObjectReducer

Type Alias: ObjectReducer<TKey, TValue, TResult>

ObjectReducer<TKey, TValue, TResult> = (accumulator, key, value) => TResult

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

Reducer callback for folding over object entries into an accumulated result.

Type Parameters

Type ParameterDefault type
TKey-
TValue-
TResultvoid

Parameters

ParameterType
accumulatorTResult
keyTKey
valueTValue

Returns

TResult