- Mastering Immutable.js
- Adam Boduch
- 64字
- 2021-07-08 10:30:07
Sequences
A sequence is one or more operations that lazily evaluate items from a collection. Sequences often start off as another type of collection, such as a list or map. You convert collections into sequences when you want to perform some sort of transformation, like this:
import { Seq } from 'immutable';
const mySeq = Seq();
console.log('Seq', mySeq instanceof Seq);
// -> Seq true