Object.getOwnPropertyDescriptor

suggest change

Get the description of an specific property in an object.

var sampleObject = {
    hello: 'world'
};

Object.getOwnPropertyDescriptor(sampleObject, 'hello');
// Object {value: "world", writable: true, enumerable: true, configurable: true}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents