Skip to main content

Type Alias: RawKeyedReducer<Key, Value, Acc, This>

RawKeyedReducer<Key, Value, Acc, This>: RawReducerWithoutFinish<readonly [Key, Value], Acc, This> & object

A keyed reducer that reduces by creating an initial accumulator using RawKeyedReducer.create and then adding key-value pairs to the accumulator values using RawKeyedReducer.add. The accumulator can be queried for values by key using RawKeyedReducer.get.

Type declaration

get()

get: (this, acc, key) => Value | typeof NO_ENTRY

Parameters

this: This

acc: Acc

key: Key

Returns

Value | typeof NO_ENTRY

Type Parameters

Key = unknown

Value = unknown

Acc = [Key, Value]

This = unknown

Defined in

reducers.d.ts:108