js check if element of map contains value 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!