Immutable.js is an awesome library for creating Immutable collections of data, hugely popular for React/Redux development, but dogged by horrendous documentation. Struggle no more, with this first in a series of in-depth tutorials, complete with live coding examples.
What is Immutable.js?
For example, Immutable’s push() method, which adds an item of data to an Immutable List, actually adds the item to a new copy of the List, leaving the original List collection completely unchanged.
// Standard mutating