Skip to main content

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 ParameterDefault typeDescription
T extends objectanyParent object type.

Parameters​

ParameterTypeDescription
valueobjectTarget object.

Returns​

ParentPath<T> | undefined