mirror of
https://codeberg.org/ashley/poke
synced 2026-04-10 12:47:58 +00:00
check if object is null
This commit is contained in:
@@ -37,9 +37,13 @@ function getJson(str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkUnexistingObject(obj) {
|
function checkUnexistingObject(obj) {
|
||||||
if (obj !== undefined) {
|
if (obj !== null) {
|
||||||
if (obj.authorId !== undefined) {
|
if (obj.authorId !== null) {
|
||||||
return true;
|
if (obj !== undefined) {
|
||||||
|
if (obj.authorId !== undefined) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user