mirror of
https://codeberg.org/ashley/poke.git
synced 2025-01-19 12:43:30 -05:00
check if object is null
This commit is contained in:
parent
5b168c1ede
commit
03115c7f3c
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue