Constructor
new Tree()
Constructs a new Tree instance.
Properties:
Name | Type | Description |
---|---|---|
* |
Branch | Leaf | Properties. |
Methods
(static) from(obj) → {Tree}
Attempt to create a tree from an existing object.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | The object to convert to a tree. |
Throws:
-
You probably passed it a primitive.
- Type
- TypeError
Returns:
The resulting tree.
- Type
- Tree
__raw__() → {Object}
Get the raw value of the tree, without all that proxy stuff.
Returns:
The raw object. Please not that objects will not be the same instances.
- Type
- Object