key value in map javascript mapping object

Solutions on MaxInterview for key value in map javascript mapping object by the best coders in the world

showing results for - "key value in map javascript mapping object"
Stacy
01 Jan 2020
1const map = {"a": 1, "b": 2, "c": 3};
2const mapped = Object.entries(map).map(([k,v]) => `${k}_${v}`);
3console.log(mapped);