code: function(filter, result){
        var node;
  
        if (!result)
          result = [];
  
        this.reset();
  
        while (node = this.next(filter))
          result.push(node);
  
        return result;
      }
docs: Returns all nodes.
  @param {function(object):boolean} filter Override internal filter
  @return {Node|object}