diff options
Diffstat (limited to 'deps/npm/node_modules/es-abstract/helpers/mod.js')
-rw-r--r-- | deps/npm/node_modules/es-abstract/helpers/mod.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/node_modules/es-abstract/helpers/mod.js b/deps/npm/node_modules/es-abstract/helpers/mod.js new file mode 100644 index 00000000000..5867fd979c0 --- /dev/null +++ b/deps/npm/node_modules/es-abstract/helpers/mod.js @@ -0,0 +1,4 @@ +module.exports = function mod(number, modulo) { + var remain = number % modulo; + return Math.floor(remain >= 0 ? remain : remain + modulo); +}; |