JS: Iterate Map Object
Iterate over map with for-of loop
let xx = new Map([["a", 1], ["b", 2], ["c", 3]]); // iterate over map with key and value for (let [k, v] of xx) { console.log(k, v); } // a 1 // b 2 // c 3
let xx = new Map([["a", 1], ["b", 2], ["c", 3]]); // iterate over map with key and value for (let [k, v] of xx) { console.log(k, v); } // a 1 // b 2 // c 3