javascript how to map and then iterate code example
Example 1: js loop trough map
for (let key of map) {
console.log(key);
}
Example 2: iteratea on values map js
map.values((value) => /* do whatever with value */)
for (let key of map) {
console.log(key);
}
map.values((value) => /* do whatever with value */)