Re:Copying objects in JavaScript
by beaconstudios on Tuesday November 13, 2018 @12:18PM
(#18442682)
I cannot recommend ramda enough. It provides the immutability and flexibility of immutablejs, but because it's build in a functional paradigm, the logic is fully composeable so complex, deeply nested changes are very simple and readable.
[ Parent
| on HN ]
That is an apples to oranges comparison. ramda does not provide persistent data structures.
Re:Copying objects in JavaScript
by beaconstudios on Tuesday November 13, 2018 @12:59PM
(#18443092)
both are used to approach the same problem: immutable manipulation of javascript data. The fact that immutableJS provides a persistent object is an implementation detail in the strategy used to solve that problem.