This commit is contained in:
aplikacje committed 2026-09-24 10:51:42 +02:00
1 parent 72ed8ef789
commit e42104c4fb
625 files changed
+66966

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
'use strict';
var $floor = require('./floor');
/** @type {import('./mod')} */
module.exports = function mod(number, modulo) {
var remain = number % modulo;
return $floor(remain >= 0 ? remain : remain + modulo);
};