Other
Clone
Clone
function creates a duplicate of an IPLD node.
This is a deep copy, meaning all nested nodes will also have Clone
called on them.
This function requires inputs as follows:
Node
1 : IPLD Node Object, the node to be cloned.
There is also an additional optional input:
Outer
2 : Object, the outer object of the node (since nodes are objects themselves). Leaving this empty will result in a transient object.
This function returns a new IPLD Node object 3 with its kind and value set to the kind and value of the original.
Is Equal
Is Equal
function compares one IPLD Node 1 to another 2.
This function returns a boolean value 3,
true
if queried Nodes are equal in kind and value, otherwise false
.