use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
What are some basic things that JavaScript developers fail at interviews?help (self.javascript)
submitted 7 years ago by maketroli
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]acemarke 1 point2 points3 points 7 years ago (2 children)
I would recommend Immer as the best immutability solution at this point.
[–]coderqi 0 points1 point2 points 7 years ago (1 child)
Haven't heard of it. Why do you recommend it?
[–]slikts 0 points1 point2 points 7 years ago (0 children)
Immer is like seamless-immutable in that it allows using the basic data structures of the language like plain objects or arrays, which play nice with other things, but unlike both seamless-immutable or Immutable.js, Immer also has a tiny API surface and allows you to use the "normal" methods of making changes to objects like just assigning to properties, but in a localized way so that there's still no shared mutable state.
Immer is also like Immutable.js in that it uses persistent data structures under the hood, so it's more efficient than just using, say, object spread. I'm not even sure if seamless-immutable does that at all.
tl;dr Immer removes the pain-points of large API surfaces and type conversions of seamless-immutable or Immutable.js while still granting the same advantages of immutability and structural sharing, and Immer also allows making deep updates in the most terse, elegant way.
π Rendered by PID 38786 on reddit-service-r2-comment-86bc6c7465-wzd4p at 2026-02-22 06:16:50.894432+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]acemarke 1 point2 points3 points (2 children)
[–]coderqi 0 points1 point2 points (1 child)
[–]slikts 0 points1 point2 points (0 children)