Creates a function that returns the property value at path on a given object.
The path of the property to get.
Returns the new function.
Creates a function that returns the property value at path on a given object.