getSecondOrElse
getSecondOrElse<
B,D>(defaultValue): <A>(data) =>B|D
Defined in: Core/These.ts:262
Returns the second value, or a default if the These has no second value.
The default can be a different type, widening the result to B | D.
Type Parameters
Section titled “Type Parameters”B
D
Parameters
Section titled “Parameters”defaultValue
Section titled “defaultValue”() => D
Returns
Section titled “Returns”<
A>(data):B|D
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”These<A, B>
Returns
Section titled “Returns”B | D