Members
Methods
append(node)
Append the given node to the end of the children list.
Parameters:
Name | Type | Description |
---|---|---|
node |
KeyDataNode
|
appendDataByKeyPath(keys, data) → {KeyDataNode}
Append data by path being an array of keys.
Parameters:
Name | Type | Description |
---|---|---|
keys |
array.<string>
|
|
data |
*
|
findByKeyPath(keys)
Fina a node by path being an array of keys.
Parameters:
Name | Type | Description |
---|---|---|
keys |
array.<string>
|
getKeyPath() → {array}
Get key path of current node (a key chain from root to itself).
Returns:
- Type:
-
array
remove(node)
Remove the given node from the branch.
Parameters:
Name | Type | Description |
---|---|---|
node |
KeyDataNode
|