map()
map<
A,B>(f): <E>(fa) =>Either<E,B>
Maps a function over the Right value of an Either.
Type Parametersβ
A: Aβ
The original success type.
B: Bβ
The new success type.
Parametersβ
f: (a) => Bβ
The mapping function.
Returns: <E>(fa): Either<E, B>β
A function that transforms the Either.
Sinceβ
2.0.0