1let mp = new Map();
2mp.set('a', 3);
3mp.set('b', 2);
4mp.delete('a'); // returns true;
5mp.delete('b'); // returns false;
1Object.keys(map).forEach(function (key) {
2 if(key.match('^'+letter)) delete obj[key];
3});
4
1var map = new Map();
2
3map.set(1, 'testvalue');
4
5console.log( "Delete value from Map = " + map.delete(1) );
6