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

Lists of values

You can use the of() method to create lists of values as follows:

const myList = List.of(1, 2, 3);
console.log('myList', myList.toJS());
// -> myList [ 1, 2, 3 ]