mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
Update set-map.md
修复了变量未定义报错
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ var s = new Set();
|
||||
|
||||
[2,3,5,4,5,2,2].map(x => s.add(x))
|
||||
|
||||
for (i of s) {console.log(i)}
|
||||
for (let i of s) {console.log(i)}
|
||||
// 2 3 5 4
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user