- Mastering Immutable.js
- Adam Boduch
- 45字
- 2021-07-08 10:30:12
Emptying collections
Sometimes, you need to empty your collections. For example, if the user navigates to a different part of the application, you could be left with collection data that you no longer need. Instead of deleting the collection reference, you could just empty it.