This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect
set与map理解
ES6中新增,set集合和map集合就是一种数据的存储结构(在ES6之前数据存储结构只有array,object),不同的场景使用不同的集合去存储数据
set集合
Set 对象允许你存储任何类型的唯一值,无论是原始值或者是对象引用。
语法:
//创建一个set集合,传参为一个可迭代的对象
const s1 = new Set(iterable);
API
名