Object.getOwnPropertyNames () returns the names of an object's properties as an array.
Why Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor () returns a property identifier for the specified property of the specified object. This method allows examination of the precise definition of a property. A property […]
Object.freeze() is used for freezing objects and arrays. Object.freeze() is used to make an object immutable.
The Object.entries () method is used to rotate the array of [key,values] entered as parameters. The ordering of the properties is the same as that given by looping over the property values of the object manually.