Mastering Immutable.js
上QQ阅读APP看书,第一时间看更新

Adding values to collections

The two main collection types on which we'll call persistent change methods are lists and maps. When you call a method to add a new value to a collection, you have to store the result somewhere because persistent changes only create data; they never destroy data.