Como verificar se um objeto é mapa em javascript

var foo = new Set;
foo instanceof Set; // True!
foo instanceof Map; // False!
Crazy Civet