javascript hashtable contains key
snippet in javascript

javascript hashtable contains key

user3369

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