mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-24 00:36:14 -04:00
fix: added parseFloat in isInt
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
parent
8158f29d62
commit
c727e150f7
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ const formatBytes = (bytes, decimals = 2) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const isInt = (value) => {
|
const isInt = (value) => {
|
||||||
return Number.isInteger(value);
|
return Number.isInteger(parseFloat(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue