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 {