Files
setup-ruby/node_modules/es-abstract/helpers/mod.js
Stephen Franceschelli e3283467a1 Fix bug. Add workflows.
2019-07-15 13:23:24 -04:00

5 lines
142 B
JavaScript

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