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

  • Mastering Immutable.js
  • Adam Boduch
  • 71字
  • 2021-07-08 10:30:06

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
主站蜘蛛池模板: 阿城市| 鹤壁市| 荥经县| 名山县| 平谷区| 大关县| 象山县| 吴忠市| 保靖县| 门源| 武城县| 正宁县| 绥芬河市| 壤塘县| 于田县| 清水河县| 含山县| 宝丰县| 江川县| 昌宁县| 岗巴县| 石狮市| 乡城县| 太保市| 周至县| 久治县| 普洱| 英吉沙县| 泊头市| 称多县| 怀集县| 咸丰县| 贡觉县| 天水市| 同心县| 西峡县| 东丰县| 阿克苏市| 江油市| 富阳市| 前郭尔|