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

Persistent Changes

Immutable data cannot change. The state of your applications must change, however, otherwise they would be completely static. To cope with changing the application state, Immutable.js collections use persistent changes. A persistent change involves first copying the target collection and then making the change in the copy.

The focus of this chapter is on some of the collection methods that implement persistent changes. You'll learn about the following:

  • Adding values to collections
  • Setting and updating collection values
  • Removing values from collections
  • Emptying collections
  • Tracking the change history of collections
主站蜘蛛池模板: 天等县| 潞西市| 建平县| 乌拉特前旗| 惠来县| 双辽市| 澄迈县| 滁州市| 苍南县| 舟山市| 桐庐县| 苏尼特左旗| 七台河市| 新余市| 苏尼特左旗| 玉树县| 平邑县| 张家口市| 临洮县| 泗水县| 庄浪县| 陇川县| 南汇区| 江口县| 德惠市| 鹤峰县| 荥经县| 新巴尔虎左旗| 玉门市| 临漳县| 武夷山市| 鲁甸县| 大港区| 尤溪县| 当阳市| 渝中区| 荥经县| 甘泉县| 金平| 满洲里市| 辽宁省|