This commit is contained in:
aplikacje committed 2026-09-10 10:51:05 +02:00
1 parent 0d1dce5535
commit 72ed8ef789
612 files changed
+64975

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);
};