title: Use Spread and Notes for ES5 Set() Integration
challengeType: 1
videoUrl: ''
localeTitle: 使用Spread和Notes进行ES5 Set()集成
---
## Description
<sectionid="description">你还记得ES6传播运营商<code>...</code>?<code>...</code>可以在ES6中获取可迭代对象并将它们转换为数组。让我们创建一个Set,并检查传播函数。 <blockquote> var set = new Set([1,2,3]); <br> var setToArr = [... set] <br> console.log(setToArr)//返回[1,2,3] </blockquote></section>