javascript map iterate over entries 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 */)