(a, b)
| 61 | * // => 4 |
| 62 | */ |
| 63 | export function mod(a, b) { |
| 64 | return a > 0 && b > 0 ? a % b : ((a % b) + b) % b; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Restricts a number to be in the given min/max range. The minimum value must |
no outgoing calls
no test coverage detected