Object.freeze()
Term side of the Card
Topic: Object
Unit title: Object.freeze()
Categories: Method
Explanation side of the Card
Explanation: The static method that freezes an object, preventing new properties from being added to it, existing properties from being removed and changed. This is useful for creating immutable objects.
Browser compatibility:
- The chrome browser supports this feature starting from version 6
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 4
- The safari browser supports this feature starting from version 5.1
Availability: