News for hackers. Stuff that matters.
Re:What’s New in ES2019 by underwater on Tuesday July 30, 2019 @08:37AM (#20564232)
Have you looked at Immer.js? It allows you to express modifications to immutable objects as a series of imperative operations.

In my experience most "immutability" in JS is enforced by convention or, at best, static type systems. It's not ideal, but it works.

Re:What’s New in ES2019 by dvlsg on Tuesday July 30, 2019 @12:52PM (#20566704)
Lenses in ramda work well, too, if you don't mind being functional in your js code.

I suppose that still only fits in the "immutable by convention" category, though.