nodes() {
        return map(this, 'nodes', arguments);
    }
Get all nodes in a tree, or nodes for an array of IDs.

@param {array} refs Array of ID references.
@return {TreeNodes} Array of node objects.
@example

const all = tree.nodes()
const some = tree.nodes([1, 2, 3])