1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-01-19 07:03:31 -05:00

check if object is null

This commit is contained in:
Ashley 2022-12-19 14:28:09 +00:00
parent 5b168c1ede
commit 03115c7f3c

View file

@ -37,9 +37,13 @@ function getJson(str) {
}
function checkUnexistingObject(obj) {
if (obj !== undefined) {
if (obj.authorId !== undefined) {
return true;
if (obj !== null) {
if (obj.authorId !== null) {
if (obj !== undefined) {
if (obj.authorId !== undefined) {
return true;
}
}
}
}
}