mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-07-07 10:14:06 -04:00
fix: added parseFloat in isInt
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
parent
0ebe60e21e
commit
cd9a2318fd
@ -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…
x
Reference in New Issue
Block a user