← Back to release summary

Object.getOwnPropertyDescriptors()

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 54)
Intent stage
None

Summary

Retrieve all own PropertyDescriptors from an object, which could be used by Object.create() or Object.defineProperties().

Standards & signals

Samples: http://www.2ality.com/2016/02/object-getownpropertydescriptors.html

View on chromestatus.com