Object.getOwnPropertySymbols() JavaScript JS

The Javascript Object getOwnPropertySymbols() method retrieves an array of all its own symbol key properties. It will return an empty array if no symbol property is directly associated with an object. Syntax: Object.getOwnPropertySymbols(object) Parameters: object: It represents the object whose symbol properties have to be fetched. Return: An array of all own symbol key properties. … Read more