fix/exists function handle NaN

This commit is contained in:
SowinskiBraeden committed 2023-11-02 17:09:47 -07:00
1 parent 5d229f717a
commit f4e13cbff2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -346,7 +346,7 @@ class DayzRBot extends Client {
}
}
exists(n) { return null != n && undefined != n && "" != n && NaN != n }
exists(n) { return null != n && undefined != n && "" != n && !isNaN(n) }
secondsToDhms(seconds) {
seconds = Number(seconds);