Function: getParentPath()
function getParentPath<T>(value): ParentPath<T> | undefined;
Returns the parent of the target plus the path from the parent to the target, or undefined if it has no parent.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T extends object | any | Parent object type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
value | object | Target object. |
Returns
ParentPath<T> | undefined