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

Summary

In this chapter, you were introduced to the various types of collections found in Immutable.js. We then looked at some code that creates new instances of these collections. Most of the time, you'll want to pass some initial data to a collection when it's created. There are a number of ways to create collections with initial data, including passing native JavaScript types to the constructors and using the of() static method. We then looked at the fromJS() function for when you need to parse complex JavaScript structures into their Immutable.js counterparts.

In the next chapter, you'll learn how to mutate your collections using persistent change methods.

主站蜘蛛池模板: 乳山市| 交口县| 澄江县| 嘉鱼县| 准格尔旗| 岫岩| 陇西县| 镇宁| 玉田县| 崇信县| 望谟县| 宜都市| 大洼县| 朝阳区| 林口县| 峡江县| 金堂县| 墨江| 信阳市| 梁山县| 甘南县| 盖州市| 墨竹工卡县| 肇州县| 丁青县| 延寿县| 衡南县| 南丹县| 盐城市| 宜春市| 西乌珠穆沁旗| 达州市| 孟津县| 武平县| 汤原县| 拜城县| 盐亭县| 天长市| 成安县| 霞浦县| 太原市|