- Mastering Immutable.js
- Adam Boduch
- 50字
- 2021-07-08 10:30:10
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.