mod
Summary
Functional equivalent of a % b.
Tip
This is an operator function.
Examples
1 2
map(mod(4))([10,15,20,25]);
//=> [2,3,0,1]
Parameters
| Name | Type | Description |
|---|---|---|
| a | number |
|
| b | number |
Return
number
Summary
Functional equivalent of a % b.
Tip
This is an operator function.
1 2
map(mod(4))([10,15,20,25]);
//=> [2,3,0,1]
| Name | Type | Description |
|---|---|---|
| a | number |
|
| b | number |
number