Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2a4313

Browse files
authored
Merge pull request#120 from ChoizzV2/fix_map_value_clarity
Clarified loop variable name in Map .values() example
2 parents3e8fcd3 +658c3ba commitb2a4313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎docs/cheatsheet/map.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ You can iterate over the map values using `values()` method as in the order it w
143143
```javascript
144144
constmap=newMap()
145145
map.set('name','Bob').set('age',20)
146-
for (constkeyofmap.values()) {
147-
console.log(`${key}`)
146+
for (constvalueofmap.values()) {
147+
console.log(`${value}`)
148148
}
149149

150150
// Bob

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp