Set the parent property on a node. By default it will skip nodes that already have a parent property, but you can set force = true to prevent that.
parent
The node to set the parent on
An object storing the parent node and the path to the node from the parent
Optional
Allow overwriting
false if the parent was already set, and undefined otherwise
Generated using TypeDoc
Set the
parent
property on a node. By default it will skip nodes that already have aparent
property, but you can set force = true to prevent that.