TypeScript's readonly is compile-time only and has zero runtime cost
This point means that I'll probably never use the good ideas in this post: if I'm doing JS complicated enough to need Object.freeze(), I'll be doing it in Typescript.
TypeScript's readonly is compile-time only and has zero runtime cost
This point means that I'll probably never use the good ideas in this post: if I'm doing JS complicated enough to need Object.freeze(), I'll be doing it in Typescript.