Returns an object's own and inherited property descriptors.
Object.getOwnPropertyDescriptors()
undefined
null
input object
own and inherited property descriptors
var obj = { 'beep': 'boop', 'foo': 3.14 }; var desc = propertyDescriptorsIn( obj ); // returns { 'beep': {...}, 'foo': {...}, ... }
Returns an object's own and inherited property descriptors.
Notes
Object.getOwnPropertyDescriptors()
, this function returns an empty object if providedundefined
ornull
, rather than throwing an error.