fold
fold<
A,B,C>(onFirst,onSecond,onBoth): (data) =>C
Defined in: Core/These.ts:201
Extracts a value from a These by providing handlers for all three cases.
Type Parameters
Section titled “Type Parameters”A
B
C
Parameters
Section titled “Parameters”onFirst
Section titled “onFirst”(a) => C
onSecond
Section titled “onSecond”(b) => C
onBoth
Section titled “onBoth”(a, b) => C
Returns
Section titled “Returns”(
data):C
Parameters
Section titled “Parameters”These<A, B>
Returns
Section titled “Returns”C