ES2017 spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.
TypeScript definitions for object.getownpropertydescriptors
A polyfill for Object.getOwnPropertyDescriptors
Like Object.getOwnPropertyDescriptor, but goes along the prototype chain and gets the descriptors for all properties.