官术网_书友最值得收藏!

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
主站蜘蛛池模板: 绥棱县| 外汇| 永川市| 平果县| 荔浦县| 麻栗坡县| 霸州市| 龙井市| 文山县| 庆元县| 云南省| 敖汉旗| 醴陵市| 新民市| 濉溪县| 久治县| 三亚市| 阳谷县| 肃宁县| 广德县| 禹城市| 马边| 凤阳县| 南漳县| 克拉玛依市| 凤翔县| 永康市| 芒康县| 台湾省| 长乐市| 临江市| 汝阳县| 青龙| 定日县| 永新县| 大同县| 疏勒县| 馆陶县| 平邑县| 巴东县| 司法|