Jak sprawdzić, czy obiekt jest mapą w JavaScript

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