- Mastering Immutable.js
- Adam Boduch
- 33字
- 2021-07-08 10:30:09
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 ]