Retrieves a value from an object using a given path.
The object from which to retrieve the value.
The path to the desired value, either as an array or dot-separated string.
Retrieves a value from an object using a given path.