mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 19:29:03 +01:00
use the in operator lol
This commit is contained in:
parent
d504b848bd
commit
8446919b11
1 changed files with 4 additions and 2 deletions
|
@ -37,10 +37,12 @@ function getJson(str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkUnexistingObject(obj) {
|
function checkUnexistingObject(obj) {
|
||||||
if (Object.hasOwn(obj, "authorId")) {
|
if (obj) {
|
||||||
|
if ("authorId" in obj) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Api functions
|
* Api functions
|
||||||
|
|
Loading…
Reference in a new issue