diff --git a/docs/cheatsheet/map.md b/docs/cheatsheet/map.md index 31832fb..7baed7d 100644 --- a/docs/cheatsheet/map.md +++ b/docs/cheatsheet/map.md @@ -143,8 +143,8 @@ You can iterate over the map values using `values()` method as in the order it w ```javascript const map = new Map() map.set('name', 'Bob').set('age', 20) -for (const key of map.values()) { - console.log(`${key}`) +for (const value of map.values()) { + console.log(`${value}`) } // Bob