Skip to main content

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

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

Defined in: reducers.d.ts:257

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​

Key = unknown

Value​

Value = unknown

Acc​

Acc = [Key, Value]

This​

This = unknown

Since​

v2.0.0