fold
fold<
E,A,B>(onErr,onOk,onBoth): (data) =>B
Defined in: Core/These.ts:176
Extracts a value from a These by providing handlers for all three cases.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”(e) => B
(a) => B
onBoth
Section titled “onBoth”(e, a) => B
Returns
Section titled “Returns”(
data):B
Parameters
Section titled “Parameters”These<E, A>
Returns
Section titled “Returns”B