Map
fornecido aqui como um wrapper em torno de um object
JavaScript. Crie os seguintes métodos e operações no objeto Map: add
aceita um par de key, value
para adicionar ao mapa. remove
aceita uma chave e remove a key, value
associada key, value
par de key, value
get
aceita uma key
e retorna o value
armazenado has
aceita uma key
e retorna verdadeiro se a chave existir ou falso, se isso não acontece. values
retorna uma matriz de todos os valores no mapa size
retorna o número de itens no mapa clear
esvazia o mapa