Function: getParent()
function getParent<T>(value): T | undefined;
Returns the parent object of the target object, or undefined if there's 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
T | undefined