上QQ阅读APP看书,第一时间看更新
Creating Immutable Data
The starting point of writing any Immutable.js code is to create an immutable collection. In this chapter, that's just what we'll do. There are a number of ways to create immutable collections, and you'll learn what they are and when they are appropriate to use. Specifically, we'll look at the following:
- Using Immutable.js constructors
- Using utility functions to create collections
- Parsing JavaScript types into Immutable.js collections