Skip to main content

Function: mapReducer()

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

mapReducer(fn, reducer)

mapReducer<Value, Acc, From, To, This>(fn, reducer): Reducer<Value, Acc, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

Value

Acc

From

To

This

Parameters

fn

reducer: Readonly<RawReducerWithFinish<Value, Acc, From, This>>

Returns

Reducer<Value, Acc, To>

Defined in

reducers.d.ts:295

mapReducer(fn)

mapReducer<From, To>(fn): <Value, Acc, This>(reducer) => Reducer<Value, Acc, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

Value

Acc

This

Parameters

reducer: Readonly<RawReducerWithFinish<Value, Acc, From, This>>

Returns

Reducer<Value, Acc, To>

Defined in

reducers.d.ts:299

mapReducer(fn, reducer)

mapReducer<Value, From, To, This>(fn, reducer): Reducer<Value, To, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

Value

From

To

This

Parameters

fn

reducer: Readonly<RawReducerWithoutFinish<Value, From, This>>

Returns

Reducer<Value, To, To>

Defined in

reducers.d.ts:305

mapReducer(fn)

mapReducer<From, To>(fn): <Value, This>(reducer) => Reducer<Value, To, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

Value

This

Parameters

reducer: Readonly<RawReducerWithoutFinish<Value, From, This>>

Returns

Reducer<Value, To, To>

Defined in

reducers.d.ts:309

mapReducer(fn, reducer)

mapReducer<Value, From, To, This>(fn, reducer): OptionalReducer<Value, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

Value

From

To

This

Parameters

fn

reducer: Readonly<RawOptionalReducerWithFinish<Value, From, This>>

Returns

OptionalReducer<Value, To>

Defined in

reducers.d.ts:315

mapReducer(fn)

mapReducer<From, To>(fn): <Value, This>(reducer) => OptionalReducer<Value, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

Value

This

Parameters

reducer: Readonly<RawOptionalReducerWithFinish<Value, From, This>>

Returns

OptionalReducer<Value, To>

Defined in

reducers.d.ts:319

mapReducer(fn, reducer)

mapReducer<From, To, This>(fn, reducer): OptionalReducer<To, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

This

Parameters

fn

reducer: Readonly<RawOptionalReducerWithoutFinish<From, This>>

Returns

OptionalReducer<To, To>

Defined in

reducers.d.ts:325

mapReducer(fn)

mapReducer<From, To>(fn): <This>(reducer) => OptionalReducer<To, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

This

Parameters

reducer: Readonly<RawOptionalReducerWithoutFinish<From, This>>

Returns

OptionalReducer<To, To>

Defined in

reducers.d.ts:329

mapReducer(fn, reducer)

mapReducer<From, To>(fn, reducer): OptionalReducer<To, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

Parameters

fn

reducer: FunctionReducer<From>

Returns

OptionalReducer<To, To>

Defined in

reducers.d.ts:335

mapReducer(fn)

mapReducer<From, To>(fn): (reducer) => OptionalReducer<To, To>

Returns a Reducer or OptionalReducer equivalent to reducer except its final value is transformed using fn.

Type Parameters

From

To

Parameters

fn

Returns

Function

Parameters

reducer: FunctionReducer<From>

Returns

OptionalReducer<To, To>

Defined in

reducers.d.ts:339