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

check if object is null

This commit is contained in:
Ashley 2022-12-19 14:28:09 +00:00
parent 4aa8f3bc1b
commit 80094eb0e9

View file

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