Immutable application state registry
const appState = new StateRegistry(initialState)
Add a change to the list of pending changes. See https://github.com/kolodny/immutability-helper for details.
Perform all pending changes.
Add some changes and commit right away. This is the same as calling update() then commitChanges().
Listen for state changes. The listener receive the new state as first argument and the old state as second argument.
Remove a change listener.
Extend the update functionalities. See https://github.com/kolodny/immutability-helper for details.