Mastering Immutable.js
上QQ阅读APP看书,第一时间看更新

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