JavaScript Reflect.ownKeys() MethodThe static Reflect.ownKeys() method returns an array whose values represents the keys of the properties of a provided object. It ignores the inherited properties. Syntax:Parameters:Obj: It is the target object from which to get the own keys. Return value:IT returns an Array of the target object's own property keys. Exceptions:A TypeError, if the target is not an Object. Browser Support:
Example 1Output: ["a", "b"] ["a", "b"] Example 2Output: ["a", "b"] ["a", "b", "c"] ["a", "b", "c"] Example 3Output: [] ["hoo"] Next TopicJavaScript Reflect |
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