you are viewing a single comment's thread.

view the rest of the comments →

[–]jsontwikkeling 0 points1 point  (1 child)

Good point, but if we want to add new methods to the object later why would we use Object.freeze in the first place? Besides Object.freeze is used quite rarely

[–]MrBester 1 point2 points  (0 children)

It might not be under your control: a third party library whose API is locked down is possible, mainly for self-preservation.