1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

Merge pull request #119 from banricho/patch-1

set-map.md 中变量未定义
This commit is contained in:
Ruan YiFeng 2016-01-09 21:12:23 +08:00
commit 4c507ff7ea

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
```