Skip to main content

Function: getParentToChildPath()

function getParentToChildPath(fromParent, toChild): Path | undefined;

Gets the path to get from a parent to a given child. Returns an empty array if the child is actually the given parent or undefined if the child is not a child of the parent.

Parameters​

ParameterTypeDescription
fromParentobject-
toChildobject-

Returns​

Path | undefined