We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bca8a5 commit 594cc4aCopy full SHA for 594cc4a
1-js/05-data-types/07-map-set-weakmap-weakset/article.md
@@ -159,6 +159,7 @@ The iteration goes in the same order as the values were inserted. `Map` preserve
159
Besides that, `Map` has a built-in `forEach` method, similar to `Array`:
160
161
```js
162
+// runs the function for each (key, value) pair
163
recipeMap.forEach( (value, key, map) => {
164
alert(`${key}: ${value}`); // cucumber: 500 etc
165
});
0 commit comments