10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 11:17:42 +02: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) { function checkFloat(string) {
try { try {
return !isNaN(parseFloat(string)) return !Number.isNaN(parseFloat(string))
} catch (error) { } catch (error) {
return false return false
} }