• Creates a function that returns the property value at path on a given object.

    Type Parameters

    • TObj
    • TResult

    Parameters

    • path: PropertyPath

      The path of the property to get.

    Returns ((obj: TObj) => TResult)

    Returns the new function.