![Mastering Immutable.js](https://wfqqreader-1252317822.image.myqcloud.com/cover/683/36700683/b_36700683.jpg)
上QQ阅读APP看书,第一时间看更新
Sets of values
You can use the of() method to create sets of values, as shown here:
const mySet = Set.of(1, 2, 3);
console.log('mySet', mySet.toJS());
// -> mySet [ 1, 2, 3 ]
You can use the of() method to create sets of values, as shown here:
const mySet = Set.of(1, 2, 3);
console.log('mySet', mySet.toJS());
// -> mySet [ 1, 2, 3 ]