JavaScript Object.getOwnPropertySymbols() MethodThe Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object. This method returns an empty array unless you have set symbol properties on your object. Syntax:Parameterobj: It is an object whose symbol properties are to be returned. Return value:This method returns an array of all symbol properties found directly upon the given object. Browser Support:
Example 1Output: 0 Example 2Output: 2 Example 3Output: 2 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