Retrieves a distinct array of 'getter' names from an object and its prototype chain.
The object to inspect
An array of property keys that have getter functions
const getters = getAccessors(myInstance); Copy
const getters = getAccessors(myInstance);
Retrieves a distinct array of 'getter' names from an object and its prototype chain.