fix/exists function handle NaN
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "12.1.6",
|
"version": "12.1.7",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
+1
-1
@@ -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) {
|
secondsToDhms(seconds) {
|
||||||
seconds = Number(seconds);
|
seconds = Number(seconds);
|
||||||
|
|||||||
Reference in new issue
Block a user