Skip to content
On this page

Tree<T>.toObject

This code serializes a node and its children into an object.

Returns

null | SerializedNode<T>

The serialized tree.