addNodes(nodes) {
        this.batch();

        const newNodes = new TreeNodes(this);
        each(nodes, node => newNodes.push(this.addNode(node)));

        this.end();

        return newNodes;
    }
Add nodes.

@param {array} nodes Array of node objects.
@return {TreeNodes} Added node objects.