JavaScript Hashtable enthält Schlüssel
if (obj.hasOwnProperty("key1")) {
...
}
Faithful Finch
if (obj.hasOwnProperty("key1")) {
...
}