javascript map remove code example
Example 1: typescript delete value from map
var map = new Map();
map.set(1, 'testvalue');
console.log( "Delete value from Map = " + map.delete(1) );
Example 2: remove elements from map javascript
Object.keys(map).forEach(function (key) {
if(key.match('^'+letter)) delete obj[key];
});