1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-02-24 07:18:58 -05:00

use the in operator lol

This commit is contained in:
Ashley 2022-12-25 16:42:08 +00:00
parent d504b848bd
commit 8446919b11

View file

@ -37,8 +37,10 @@ function getJson(str) {
}
function checkUnexistingObject(obj) {
if (Object.hasOwn(obj, "authorId")) {
return true;
if (obj) {
if ("authorId" in obj) {
return true;
}
}
}