i use hashmap in order to store the key value pair of the map.Please suggest me if their is an alternative way to do the same using NOdejs.
var HashMap=require('hashmap');
var map=new HashMap();
map.set("amit",[1,2]);
map.set("amit",[3,4]);
console.log(map.get("amit"));
On console it print [3,4], i want [1,2,3,4]. How am i going to approach this. if value in the value variable repeated then i also want to increase the count of the value corresponding to the same key.