Function: mapReducer()
Returns a Reducer or OptionalReducer equivalent to reducer
except its final value is transformed using fn
.
Since
v2.0.0
Call Signature
mapReducer<
Value
,Acc
,From
,To
,This
>(fn
,reducer
):Reducer
<Value
,Acc
,To
>
Type Parameters
• Value
• Acc
• From
• To
• This
Parameters
fn
(value
) => To
reducer
Readonly
<RawReducerWithFinish
<Value
, Acc
, From
, This
>>
Returns
Reducer
<Value
, Acc
, To
>
Defined in
Call Signature
mapReducer<
From
,To
>(fn
): <Value
,Acc
,This
>(reducer
) =>Reducer
<Value
,Acc
,To
>
Type Parameters
• From
• To
Parameters
fn
(value
) => To
Returns
Function
Type Parameters
• Value
• Acc
• This
Parameters
reducer
Readonly
<RawReducerWithFinish
<Value
, Acc
, From
, This
>>
Returns
Reducer
<Value
, Acc
, To
>
Defined in
Call Signature
mapReducer<
Value
,From
,To
,This
>(fn
,reducer
):Reducer
<Value
,To
,To
>
Type Parameters
• Value
• From
• To
• This
Parameters
fn
(value
) => To
reducer
Readonly
<RawReducerWithoutFinish
<Value
, From
, This
>>
Returns
Reducer
<Value
, To
, To
>
Defined in
Call Signature
mapReducer<
From
,To
>(fn
): <Value
,This
>(reducer
) =>Reducer
<Value
,To
,To
>
Type Parameters
• From
• To
Parameters
fn
(value
) => To
Returns
Function
Type Parameters
• Value
• This
Parameters
reducer
Readonly
<RawReducerWithoutFinish
<Value
, From
, This
>>
Returns
Reducer
<Value
, To
, To
>
Defined in
Call Signature
mapReducer<
Value
,From
,To
,This
>(fn
,reducer
):OptionalReducer
<Value
,To
>
Type Parameters
• Value