remove item from map javascript code example
Example 1: js delete object in map
my_map.delete(id)
Example 2: remove elements from map javascript
Object.keys(map).forEach(function (key) {
if(key.match('^'+letter)) delete obj[key];
});
my_map.delete(id)
Object.keys(map).forEach(function (key) {
if(key.match('^'+letter)) delete obj[key];
});