fallback
Summary
Functional equilvant of a ?? b.
Tip
This is an operator function.
Examples
1 2 3 4 5 6 7
const your_name = fallback('john doe');
your_name('tom');
//=> 'tom'
your_name(null);
//=> 'john doe'
Parameters
| Name | Type | Description |
|---|---|---|
| a | ? |
Any |
| b | ? |
Any |
Return
?