how to check if a value exists in a dictionary javascript code example
Example: check if key does not exists in dictionary javascript
var person={"name":"Billy","age":20}
person.hasOwnProperty("name"); // true
person.hasOwnProperty("gender"); // false