Returns the parent of the target plus the path from the parent to the target, or undefined if it has no parent.
Target object.
T Parent object type.
Returns the parent of the target plus the path from the parent to the target, or undefined if it has no parent.