es6 map to key value pair code example
Example 1: key value in map JavaScript mapping object
const map = {"a": 1, "b": 2, "c": 3};
const mapped = Object.entries(map).map(([k,v]) => `${k}_${v}`);
console.log(mapped);
Example 2: javascript map ket to value
m.set('color', 'red')
m.set('age', 2)