or
Summary
Functional equivalent of a || b but works with logical truth instead of truthy.
Tip
This is an operator function.
Examples
1 2
map(or(42))([0, 1, false]);
//=> [0, 1, 42]
Parameters
| Name | Type | Description |
|---|---|---|
| a | ? |
|
| b | ? |
Return
?
Summary
Functional equivalent of a || b but works with logical truth instead of truthy.
Tip
This is an operator function.
1 2
map(or(42))([0, 1, false]);
//=> [0, 1, 42]
| Name | Type | Description |
|---|---|---|
| a | ? |
|
| b | ? |
?