nullishOr<A
>(a
): <B
>(b
) => B
| NonNullable
<A
>
Nullish Coalescing (a ?? b)
.
Type Parameters
• A
Parameters
A
The possible null value.
Returns
Function
Type Parameters
• B
Parameters
B
Returns
B
| NonNullable
<A
>
pure function
Example