fold()
constfold: <E,B,A>(onLeft,onRight) => (ma) => () =>Promise<B> =match
Alias for match.
Pattern matches on a TaskEither.
Type Parametersโ
E: Eโ
The error type.
B: Bโ
The return type.
A: Aโ
The success type.
Parametersโ
onLeft: (e) => Bโ
Handler for Left case.
onRight: (a) => Bโ
Handler for Right case.
Returnsโ
A function that matches the TaskEither.
Returns: Promise<B>โ
Sinceโ
2.0.0