Iterate over all the children of path
Return the length of children of path, or NaN if path not found.
Searches children, returning the node that has the given value.
Return the parent node of path, or undefined if not found or at root.
Iterate over all the siblings of path, excluding the node at path itself.
Yields LabelledNode instances, which allow you to traverse tree. If all you care about is the values, use siblingsValues instead.
Iterate over the values of all the siblings of path, excluding the node at path itself. If you need to traverse tree, use siblings instead.
Returns a string representation of a LabelledNode tree.
Format: { label: "x", value: ..., children: [...] }
Creates a wrapper for working with 'pathed' trees. An example is a filesystem.
Options for parsing a path
Adds a value by a string path, with '.' as a the default delimiter Automatically generates intermediate nodes.