mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 19:22:21 +00:00
commit
4c507ff7ea
@ -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
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user