Skip to content

Commit

Permalink
docs(set-map): edit Map
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Jul 2, 2017
1 parent b9bd59d commit b9f1413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/set-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ items.forEach(
);
```

事实上,不仅仅是数组,任何具有 Iterator 接口的数据结构(详见《Iterator》一章)都可以当作`Map`构造函数的参数。这就是说,`Set``Map`都可以用来生成新的 Map。
事实上,不仅仅是数组,任何具有 Iterator 接口、且每个成员都是一个双元素的数组的数据结构(详见《Iterator》一章)都可以当作`Map`构造函数的参数。这就是说,`Set``Map`都可以用来生成新的 Map。

```javascript
const set = new Set([
Expand Down

0 comments on commit b9f1413

Please sign in to comment.