Update set-map.md

修复了变量未定义报错
This commit is contained in:
banri
2016-01-08 23:27:16 +08:00
parent 91d44bdb6f
commit 4ac59e099c
+1 -1
View File
@@ -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
```