▲ Variables declared using const are not immutable at ponyfoo.com▼4 up and 1 down, posted by ponyfoo 2825 days ago 1 comment
MaxArt 2824 days ago. link 3 points ▲ ▼Well, it's the usual drill: when not holding primitive values, it's the reference to the object to be immutable, not the object itself. You're better off with Object.freeze (which does not deep-freeze it anyway).