javascript key in arraty code example Example: javascript hashtable contains key if (obj.hasOwnProperty("key1")) { ... }