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