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

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
主站蜘蛛池模板: 张家川| 绥芬河市| 田东县| 建水县| 云安县| 鄂托克旗| 鄂尔多斯市| 化州市| 从化市| 大洼县| 建瓯市| 昌乐县| 贺兰县| 阿图什市| 黄浦区| SHOW| 全州县| 隆化县| 双鸭山市| 隆安县| 太白县| 诸城市| 黄冈市| 班戈县| 汤阴县| 盱眙县| 德兴市| 颍上县| 四子王旗| 新乡县| 盐山县| 越西县| 肇庆市| 永康市| 上思县| 筠连县| 博湖县| 金溪县| 白山市| 孝义市| 宿松县|