mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
Use Number.IsNaN instead of isNaN
This commit is contained in:
parent
3c9ae18f8c
commit
01830ae23d
@ -19,7 +19,7 @@ class stringFloat{
|
|||||||
}
|
}
|
||||||
function checkFloat(string) {
|
function checkFloat(string) {
|
||||||
try {
|
try {
|
||||||
return !isNaN(parseFloat(string))
|
return !Number.isNaN(parseFloat(string))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user