xxxxxxxxxx
let myDict = {"a": 53, "b": 42}
if "a" in myDict {} // True
if "c" in myDict {} // False
xxxxxxxxxx
Use the in operator:
testArray = 'key1' in obj;
Sidenote: What you got there, is actually no jQuery object, but just a plain JavaScript Object