Lists

A list is like a JavaScript array. It's an indexed collection, meaning that the same type of indexes that you would use with an array will also work with lists. The notation is different, though—you use methods to get and set data instead of the [] notation, as shown here:

import { List } from 'immutable';
const myList = List();
console.log('List', myList instanceof List);
// -> List true
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.102.112