JavaScript Object.getOwnPropertyDescriptors() MethodThe Object.getOwnPropertyDescriptors() method returns all own property descriptors of a given object. The difference between getOwnPropertyDescriptors() and getOwnPropertyDescriptor() method is that getOwnPropertyDescriptors() method ignores symbolic properties. Syntax:Parameterobj: It is the object for which to get all own property descriptors. Return:This method returns an object which contains all own property descriptors of an object. This method might return an empty object if there are no properties. Browser Support:
Example 1Output: 103 Example 2Output: [object Object] { configurable: true, enumerable: true, value: 22, writable: true } true Example 3Output: true 42 23 Next TopicJavaScript Objects |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India