Unfortunately, we can only do so via a library called Immutable.js.
So You Want to be a Functional Programmer (Part 6)
Charles Scalfani

Have you heard of Object.freeze? This lets you freeze any object, so values can’t be modified. If the object contains further objects, you might want to freeze it recursively. There are deep freeze modules on NPM that do that. ;)

Like what you read? Give Samuel Kaiser a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.