fold
fold<
E,A,B>(onFailed,onPassed): (data) =>B
Defined in: Core/Validation.ts:186
Extracts the value from a Validation by providing handlers for both cases.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”onFailed
Section titled “onFailed”(errors) => B
onPassed
Section titled “onPassed”(a) => B
Returns
Section titled “Returns”(data) => B