Constructors
Accessors
data
- get data(): null | T
Returns null | T
parent
- get parent(): null | TreeNode<T>
- set parent(parent): void
Returns void
Methods
addChildren
- addChildren(...children): void
Returns void
isRoot
- isRoot(): boolean
Returns boolean
traverse
- traverse(callbackFn): void
Returns void
Generic tree class.