mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 21:37:48 +01:00
use the in operator lol
This commit is contained in:
parent
fe438cf863
commit
df72bacb86
1 changed files with 4 additions and 2 deletions
|
@ -37,9 +37,11 @@ function getJson(str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkUnexistingObject(obj) {
|
function checkUnexistingObject(obj) {
|
||||||
if (Object.hasOwn(obj, "authorId")) {
|
if (obj) {
|
||||||
|
if ("authorId" in obj) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue