javascript check if object is map 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!