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

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.

主站蜘蛛池模板: 东明县| 关岭| 阿拉善盟| 泰来县| 普兰县| 漳浦县| 洛隆县| 岚皋县| 共和县| 新竹市| 张家界市| 天柱县| 伊通| 彰武县| 祥云县| 旬阳县| 陕西省| 临汾市| 霍林郭勒市| 望江县| 武强县| 买车| 奇台县| 大渡口区| 潜江市| 乐清市| 施甸县| 普宁市| 静安区| 定州市| 东阳市| 锡林郭勒盟| 岢岚县| 潼南县| 温州市| 聂荣县| 商河县| 漾濞| 湘潭县| 嘉义市| 望奎县|