Library API
    Preparing search index...

    Function getMethods

    • Finds all method names on an object.

      Parameters

      • obj: any

        The object to inspect

      • all: boolean = false

        Whether to traverse the prototype chain (default: false)

      Returns PropertyKey[]

      An array of property keys corresponding to functions

      const methods = getMethods(myClassInstance);