Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js map iterate

map = new Map();
map.set('key1', 'value1');
map.set('key2', 'value2');
for (let [key, value] of map.entries()) {
    console.log(key + ' - ' + value)
}
 
PREVIOUS NEXT
Tagged: #js #map #iterate
ADD COMMENT
Topic
Name
2+5 =