上QQ阅读APP看书,第一时间看更新
Parsing JavaScript arrays
You can parse a regular JavaScript array, resulting in a list, as shown here:
import { fromJS } from 'immutable';
const myList = fromJS([1, 2, 3]);
console.log('myList', myList.get(0));
// -> myList 1
This is just like passing the array to the List constructor.