mapLeft()
mapLeft<
E,G>(f): <A>(fa) =>Either<G,A>
Maps a function over the Left value of an Either.
Type Parametersβ
E: Eβ
The original error type.
G: Gβ
The new error type.
Parametersβ
f: (e) => Gβ
The mapping function.
Returns: <A>(fa): Either<G, A>β
A function that transforms the Either.
Sinceβ
2.0.0