What motivates the increasing usage of immutable data structures such as those provided in ImmutableJS and SeamlessJS?
Best How To :
There are at least three benefits:
Regardless of whether it is frontend or backend work, it can simplify your logic and work process significantly. If the app has a bug, then anything you can rule out, including the inadvertent modification of some logically-immutable data structure, can help.
It can improve runtime performance when you clone objects containing them.
I doubt these specific libraries actually use this, but immutable data structures can sometimes have better implementations. Hash tables can utilize perfect hashing, and balanced trees can be replaced by sorted arrays.