Skip to main content
7 events
when toggle format what by license comment
Sep 6, 2016 at 20:56 comment added Mathias Bynens @ColeRoberts It means that object values within a frozen object (i.e. nested objects) can still be mutated. See mathiasbynens.be/notes/es6-const#immutable-values for more information.
Sep 6, 2016 at 19:59 comment added clean_coding @ColeRoberts The concept of shallow immutability, is when the object reference itself is immutable, but the properties can still be changed. The const keyword only makes for shallow immutability, hence you need to use Object.freeze if all the properties also should be immutable.
Sep 6, 2016 at 16:36 comment added Cole Roberts @MathiasBynens I came across this comment and I'm curious as to what exactly you meant by it. Could you please elaborate?
Feb 5, 2016 at 9:03 comment added Mathias Bynens Note that Object.freeze is shallow.
Nov 12, 2015 at 16:14 review Late answers
Nov 12, 2015 at 17:25
Nov 12, 2015 at 16:04 review First posts
Nov 12, 2015 at 16:40
Nov 12, 2015 at 15:58 history answered clean_coding CC BY-SA 3.0