Indeed I didn't, thanks!
It even seems to be supported by typescript as the type definition returns a ReadOnly (stackoverflow.com/questions/486298...).
Makes me wonder why libraries like ngrx don't take advantage of this.
I will definitely try to use that one.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
have you seen
Object.freeze
?Indeed I didn't, thanks!
It even seems to be supported by typescript as the type definition returns a
ReadOnly
(stackoverflow.com/questions/486298...).Makes me wonder why libraries like ngrx don't take advantage of this.
I will definitely try to use that one.