summaryrefslogtreecommitdiff
path: root/src/utils/helpers.js
diff options
context:
space:
mode:
authorGravatar dotvirus <33938500+dotvirus@users.noreply.github.com> 2020-06-08 23:53:21 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2020-06-09 08:09:36 +0200
commitc484715c3e7e63c7738c70f4e4f2a40eb5d884b8 (patch)
tree2a2ae2dd5b4cc6ae3ff57851c3154e8264318a47 /src/utils/helpers.js
parent0812385adae1c5179584cf7d7d884dc06e084569 (diff)
downloadit-tools-c484715c3e7e63c7738c70f4e4f2a40eb5d884b8.tar.gz
it-tools-c484715c3e7e63c7738c70f4e4f2a40eb5d884b8.tar.zst
it-tools-c484715c3e7e63c7738c70f4e4f2a40eb5d884b8.zip
Use Number.isInteger
Diffstat (limited to '')
-rw-r--r--src/utils/helpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/helpers.js b/src/utils/helpers.js
index 0254d1b..e847c42 100644
--- a/src/utils/helpers.js
+++ b/src/utils/helpers.js
@@ -25,7 +25,7 @@ const formatBytes = (bytes, decimals = 2) => {
}
const isInt = (value) => {
- return !isNaN(value) && ((x) => (x | 0) === x)(parseFloat(value))
+ return Number.isInteger(value);
}
export {