27. April 2015

Javascript Snippets: Immutable Lists

With the recent popularity of view frameworks such as React and Mercury, immutable data structures have become widespread choices for storing UI state. In this short post, we’ll examine the motivation for maintaining immutability and build a simple snippet for constructing reasonably performant immutable lists. For production usage, check out Facebook’s immutable.js.

more