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