delete array element inside a map element code example
Example: remove elements from map javascript
Object.keys(map).forEach(function (key) {
if(key.match('^'+letter)) delete obj[key];
});
Object.keys(map).forEach(function (key) {
if(key.match('^'+letter)) delete obj[key];
});