Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Iterate Over Map Values

let map1 = new Map();
map1.set('name', 'Jack');
map1.set('age', '27');

// looping through the Map
for (let values of map1.values()) {
    console.log(values);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #Iterate #Over #Map #Values
ADD COMMENT
Topic
Name
3+8 =