Files
2018-10-27 03:51:47 -05:00

5 lines
142 B
JavaScript
Vendored

module.exports = function mod(number, modulo) {
var remain = number % modulo;
return Math.floor(remain >= 0 ? remain : remain + modulo);
};