delete from map javascript 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];
});