84
JavaScript handler.ownKeys() Method
The handler.ownKeys() method of JavaScript is used to return an enumerable object. This method is a trap for Reflect.ownKeys().
Syntax
Parameters
target: The target object.
Return value
Return an enumerable object.
Browser Support
Chrome | 49 |
Edge | 12 |
Firefox | 18 |
Opera | 36 |
Example 1
Output:
Use handler.ownKeys() is a,b,c
Example 2
Output:
Age Count
Example 3
Output:
in ownKeys method foo in ownKeys method foo,variable
Next TopicJavaScript handler