diff options
Diffstat (limited to 'node_modules/es-abstract/helpers/mod.js')
-rw-r--r-- | node_modules/es-abstract/helpers/mod.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/node_modules/es-abstract/helpers/mod.js b/node_modules/es-abstract/helpers/mod.js index 5867fd979..67c8b78a2 100644 --- a/node_modules/es-abstract/helpers/mod.js +++ b/node_modules/es-abstract/helpers/mod.js @@ -1,4 +1,8 @@ +'use strict'; + +var $floor = Math.floor; + module.exports = function mod(number, modulo) { var remain = number % modulo; - return Math.floor(remain >= 0 ? remain : remain + modulo); + return $floor(remain >= 0 ? remain : remain + modulo); }; |