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

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.

主站蜘蛛池模板: 许昌市| 安吉县| 新和县| 苏尼特右旗| 株洲县| 昭平县| 吉首市| 思南县| 宿迁市| 吉首市| 宿州市| 吉木乃县| 灵台县| 馆陶县| 高雄市| 任丘市| 会昌县| 新安县| 银川市| 扎赉特旗| 张北县| 卢氏县| 广平县| 大邑县| 峨边| 成武县| 兴安县| 凯里市| 县级市| 南皮县| 清流县| 中阳县| 红河县| 万盛区| 墨玉县| 京山县| 苏州市| 星子县| 哈尔滨市| 都兰县| 文山县|