10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +01:00

Use Number.IsNaN instead of isNaN

This commit is contained in:
Mickaël Véril 2020-02-02 15:35:21 +01:00
parent 3c9ae18f8c
commit 01830ae23d

View File

@ -19,7 +19,7 @@ class stringFloat{
}
function checkFloat(string) {
try {
return !isNaN(parseFloat(string))
return !Number.isNaN(parseFloat(string))
} catch (error) {
return false
}