javascript hashtable contains key

JavaScript
if (obj.hasOwnProperty("key1")) {
  ...
}
Source

Also in JavaScript: