Skip to content

Day: January 27, 2019

Object.getOwnPropertyDescriptor()

Object.getOwnPropertyDescriptor()

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

Object.freeze()

Object.freeze() is used for freezing objects and arrays. Object.freeze() is used to make an object immutable.

Object.entries()

Object.entries()

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.