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