map ke and value js code example
Example 1: key value in map javascript
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)