Hashtable JavaScript contém chave
if (obj.hasOwnProperty("key1")) {
...
}
Faithful Finch
if (obj.hasOwnProperty("key1")) {
...
}