Library API
    Preparing search index...

    Function getAccessors

    • Retrieves a distinct array of 'getter' names from an object and its prototype chain.

      Parameters

      • obj: any = {}

        The object to inspect

      Returns string[]

      An array of property keys that have getter functions

      const getters = getAccessors(myInstance);