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

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.

主站蜘蛛池模板: 庆阳市| 英德市| 五家渠市| 富蕴县| 虎林市| 天门市| 海盐县| 吉林市| 呼图壁县| 始兴县| 江山市| 婺源县| 镇安县| 保山市| 莫力| 峡江县| 北川| 延津县| 巴塘县| 香格里拉县| 新乡市| 吉安市| 济源市| 临沧市| 南宁市| 宜都市| 沙洋县| 衢州市| 康马县| 荆州市| 榆中县| 文成县| 贵州省| 唐海县| 惠安县| 伽师县| 莒南县| 武定县| 历史| 海兴县| 大余县|