- Mastering Immutable.js
- Adam Boduch
- 31字
- 2021-07-08 10:30:09
Sequences of values
You can use the of() method to create value sequences, as follows:
const mySeq = Seq.of(1, 2, 3);
console.log('mySeq', mySeq.toJS());
// -> mySeq [ 1, 2, 3 ]
You can use the of() method to create value sequences, as follows:
const mySeq = Seq.of(1, 2, 3);
console.log('mySeq', mySeq.toJS());
// -> mySeq [ 1, 2, 3 ]