Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-10-24 09:57:31 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-10-24 10:56:34 +0300
commit1d5ff5f2a5a1c1602b07769255bfd596555f23d5 (patch)
tree5abba933a0d41ef562a37ea4471737ee99b15801 /lib
parent97167ee44f56748940fbb79ecd4f06e9f7e6510d (diff)
Enable `unicorn/prefer-exponentiation-operator` rule
Diffstat (limited to 'lib')
-rw-r--r--lib/rfs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rfs.js b/lib/rfs.js
index 706354b..ae38024 100644
--- a/lib/rfs.js
+++ b/lib/rfs.js
@@ -49,7 +49,7 @@ module.exports = class {
}
toFixed(number, precision) {
- const multiplier = Math.pow(10, precision + 1);
+ const multiplier = 10 ** (precision + 1);
const wholeNumber = Math.floor(number * multiplier);
return Math.round(wholeNumber / 10) * 10 / multiplier;