grovel
Disclaimer: this library is tailor-made for another project. No attempt will be made to spin it into its own project / PRs with new features will be ignored.
A collection of utilities to handle almost-immutable data.
The idea is to be able to do oldState === newState
or oldState.a.b.c
===
newState.a.b.c
rather than _.isEqual
. Hence, assocIn
generates a lot of
shallow copies. Oh well.
Usage
The recommended way to use grovel is to use babel with function binding, which allows you to write code like this:
{ const a = {}:: const france = a:: assert const b = a:: assert const france2 = b:: }
However, grovel/core
exports regular old functions, if that's more your style.