javascript hashtable how to check the value of a key code example Example: javascript hashtable contains key if (obj.hasOwnProperty("key1")) { ... }