• This method is like _.get except that if the resolved value is a function it’s invoked with the this binding of its parent object and its result is returned.

    Type Parameters

    • TResult

    Parameters

    • object: any

      The object to query.

    • path: PropertyPath

      The path of the property to resolve.

    • OptionaldefaultValue: TResult | ((...args: any[]) => TResult)

      The value returned if the resolved value is undefined.

    Returns TResult

    Returns the resolved value.