mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 06:48:56 +01:00
check if object is null
This commit is contained in:
parent
4aa8f3bc1b
commit
80094eb0e9
1 changed files with 7 additions and 3 deletions
|
@ -37,12 +37,16 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Api functions
|
* Api functions
|
||||||
|
|
Loading…
Reference in a new issue