get-descriptor
Object.getOwnPropertyDescriptor
.
Taking the 'own' out of
Same as Object.getOwnPropertyDescriptor
except it searches the prototype chain to find the descriptor.
Installation
npm install get-descriptor
Example
var getDescriptor = var proto = {} Object var obj = Object // finds 'value' descriptor on prototype chain :D descriptor) // => { configurable: false, enumerable: false, value: 'hello', writable: false } // without getDescriptorObject // => null
License
MIT