Babel plugin that replaces object and array literals with immutable versions… that have super powers!
Elsa is a babel plugin, to make use of it, you need to install it:
npm install --save babel-plugin-elsa
Add elsa as a plugin to your
.babelrc config file (or babel section of
Immutability is cool these days. By never altering the contents of an object or array, and instead cloning them when you want to make a change, you avoid common bugs. It's especially popular in React development, but by no means exclusive to React.
There are great libraries out there like Immutable.js
... read the whole story at github.com.