Programming Tips - How can I check for membership in an associative array?

Date: 2017aug21 Language: javaScript Q. How can I check for membership in an associative array? A. Use the `in` keyword:
function isMember(map, key) { return key in map; }
This is better than checking for `null` or `undefined`.