javascript map key value 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)