• Creates a function that invokes the method at path on a given object. Any additional arguments are provided to the invoked method.

    Parameters

    • path: PropertyPath

      The path of the method to invoke.

    • Rest...args: any[]

      The arguments to invoke the method with.

    Returns ((object: any) => any)

    Returns the new function.

      • (object): any
      • Parameters

        • object: any

        Returns any