lt
Summary
Functional equivalent of a < b.
Tip
This is an operator function.
Examples
Keep numbers lower than 5:
1 2
filter(lt(5))([2,4,6,8]);
//=> [2,4]
Parameters
| Name | Type | Description |
|---|---|---|
| a | number |
|
| b | number |
Return
boolean
Summary
Functional equivalent of a < b.
Tip
This is an operator function.
Keep numbers lower than 5:
1 2
filter(lt(5))([2,4,6,8]);
//=> [2,4]
| Name | Type | Description |
|---|---|---|
| a | number |
|
| b | number |
boolean