check if associative array have value for property es6 code example Example: javascript hashtable contains key if (obj.hasOwnProperty("key1")) { ... }