Protect a JavaScript Object from Changes with Object.freeze()
Apr 29, 2020
Or view on egghead.io
In this lesson we’ll learn how to prevent changes to an object in JavaScript using the built in
Object.freeze()
Object.freeze()
This is helpful in a variety of situations, particularly with preventing inadvertent changes to an object’s data throughout a codebase.
Want more like this? Sign up to get one article delivered weekly by email.