mapBoth()
constmapBoth: <E,G,A,B>(f,g) => (fa) =>TaskEither<G,B> =bimap
Alias for bimap.
Maps functions over both Left and Right values.
Type Parameters
E: E
The original error type.
G: G extends ErrorType
The new error type.
A: A
The original success type.
B: B
The new success type.
Parameters
f: (e) => G
The error mapping function.
g: (a) => B
The success mapping function.
Returns
A function that transforms the TaskEither.
Since
2.0.0