1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(set): edit set

This commit is contained in:
ruanyf 2017-11-21 13:38:59 +08:00
parent 3a79a8d329
commit b424224cb7

View File

@ -249,7 +249,7 @@ let unique = [...new Set(arr)];
// [3, 5, 2] // [3, 5, 2]
``` ```
而且,数组的`map``filter`方法也可以用于 Set 了。 而且,数组的`map``filter`方法也可以间接用于 Set 了。
```javascript ```javascript
let set = new Set([1, 2, 3]); let set = new Set([1, 2, 3]);