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:
parent
3a79a8d329
commit
b424224cb7
@ -249,7 +249,7 @@ let unique = [...new Set(arr)];
|
||||
// [3, 5, 2]
|
||||
```
|
||||
|
||||
而且,数组的`map`和`filter`方法也可以用于 Set 了。
|
||||
而且,数组的`map`和`filter`方法也可以间接用于 Set 了。
|
||||
|
||||
```javascript
|
||||
let set = new Set([1, 2, 3]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user