aswi2020vldc-gitlab/templetes/node_modules/es-abstract/helpers/mod.js @ 10920ea3
1 |
'use strict'; |
---|---|
2 | |
3 |
module.exports = function mod(number, modulo) { |
4 |
var remain = number % modulo; |
5 |
return Math.floor(remain >= 0 ? remain : remain + modulo); |
6 |
};
|