map function if value exist or not code example
Example: how to check if an object is map in javascript
var foo = new Set;
foo instanceof Set; // True!
foo instanceof Map; // False!
var foo = new Set;
foo instanceof Set; // True!
foo instanceof Map; // False!