Object.getOwnPropertyNames () returns the names of an object's properties as an array.
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 in JavaScript consists of a name in the string value or a Symbol and property identifier. More information about property identifier types and attributes can... Continue Reading →
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.
Object.defineProperties()
Object.defineProperties () creates or configures properties that are named and described by identifiers in the object. The names of the identifiers are property-generating objects that specify the properties of the properties to be created or the properties of the properties to be configured.
JavaScript Object: Examples
JavaScript Object: Examples
JavaScript Object
JavaScript Object