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

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.

主站蜘蛛池模板: 阿荣旗| 平凉市| 汉阴县| 正镶白旗| 常德市| 富源县| 通榆县| 同江市| 东台市| 大英县| 图们市| 堆龙德庆县| 通山县| 淄博市| 左云县| 中宁县| 德阳市| 枣阳市| 孝感市| 五指山市| 通道| 腾冲县| 称多县| 龙岩市| 辽阳县| 永宁县| 阳东县| 舒城县| 宝清县| 新源县| 张掖市| 临澧县| 柳江县| 滨海县| 绥中县| 邢台市| 灌阳县| 玛沁县| 策勒县| 尼勒克县| 溧阳市|