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