swappedOr()
swappedOr<
A
>(a
): <B
>(b
) =>boolean
Swapped Logical Or: (b || a)
. Swapped Logical Disjunction.
Type Parameters
• A
Parameters
a
A
The value to fallback to.
Returns
Function
Type Parameters
• B
Parameters
b
B
Returns
boolean
See
https://en.wikipedia.org/wiki/Logical_disjunction
Remarks
pure function
Example
swappedOr(0)(true);
// true