From 318691837e38e09f1099f93ba3134e0dd961f338 Mon Sep 17 00:00:00 2001 From: dotvirus <33938500+dotvirus@users.noreply.github.com> Date: Mon, 8 Jun 2020 23:53:21 +0200 Subject: [PATCH] Use Number.isInteger --- src/utils/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.js b/src/utils/helpers.js index 0254d1b8..e847c420 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 {