mirror of
https://git.mirrors.martin98.com/https://github.com/actions/setup-python
synced 2025-08-04 02:10:40 +08:00
5 lines
142 B
JavaScript
5 lines
142 B
JavaScript
module.exports = function mod(number, modulo) {
|
|
var remain = number % modulo;
|
|
return Math.floor(remain >= 0 ? remain : remain + modulo);
|
|
};
|