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

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.