Below is the map key/value pair I’ve in the JavaScript “map”:
var map = {"a": 1, "b": 2, "c": 3};
alert(JSON.stringify(map));
I want to get an mapper which contains key/value pair on each iteration like below:
// ["a_1", "b_2", "c_3"]
map.map((key, value) => key + "_" + value);
Can anyone tell me how to do it?