tree~TreeNode(parent, name, type, initValue, sync, readOnly)

new TreeNode(parent, name, type, initValue, sync, readOnly)

Parameters:
Name Type Description
parent TreeNode | null the parent TreeNode
name string Must not contain whitespace or dots
type datatype the data type to be used
initValue mixed
sync boolean
readOnly boolean

Methods

getFlatRepresentation(depth) → {object}

Returns a flat representation of the sub tree.
Parameters:
Name Type Default Description
depth number 0 depth.
Returns:
object

Symbol.iterator() → {TreeNode}

Iterates over the node and child nodes
Returns:
TreeNode