JavaScript object immutability

added by JavaScript Kicks
9/12/2019 7:17:46 AM

315 Views

Objects in JavaScript have properties and as of ES5 all properties are described with property descriptors . You can get the descriptor of a property in any object by Object.getOwnPropertyDescriptor(obj, 'property'); What this returns is an object that contains the property's value and its characteristics, how it's described.


0 comments