initialize

This commit is contained in:
2025-05-14 19:27:36 +02:00
commit 28ced1c764
870 changed files with 92291 additions and 0 deletions
+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);
};