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 RawReducerWithoutFinish.create and then adding key-value pairs to the accumulator values using RawReducerWithoutFinish.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

Since

v2.0.0

Defined in

reducers.d.ts:257