The objGetOwnPropertySymbols() method returns an array of all symbol properties found directly upon
the given object. Unlike Object.getOwnPropertyNames(), this method returns symbol properties only.
Parameters
obj: any
The object whose symbol properties are to be returned.
Returns symbol[]
An array of all symbol properties found directly upon the given object.
The
objGetOwnPropertySymbols()
method returns an array of all symbol properties found directly upon the given object. Unlike Object.getOwnPropertyNames(), this method returns symbol properties only.