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

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
主站蜘蛛池模板: 吴江市| 鄂托克前旗| 垣曲县| 井研县| 远安县| 额尔古纳市| 德格县| 吉木乃县| 常宁市| 红河县| 五原县| 彭山县| 班玛县| 新巴尔虎右旗| 乐山市| 马龙县| 清河县| 合山市| 灵山县| 垫江县| 潼关县| 昂仁县| 宝鸡市| 万源市| 崇信县| 武胜县| 措勤县| 衡阳县| 康保县| 龙门县| 南安市| 光泽县| 湘潭县| 耿马| 礼泉县| 顺昌县| 镇远县| 西峡县| 扬州市| 名山县| 榆社县|