iterate over keys of map javascript code example
Example 1: iterate over map key value javascript
recipeMap.forEach((value, key) => {
console.log(`${key} costs ${value}`);
});
Example 2: iteratea on values map js
map.values((value) => /* do whatever with value */)