function listNext(node, pred) {
  pred = pred || func.fail;

  const nodes = [];
  while (node) {
    if (pred(node)) { break; }
    nodes.push(node);
    node = node.nextSibling;
  }
  return nodes;
}
function listNext(node, pred) {
  pred = pred || func.fail;

  const nodes = [];
  while (node) {
    if (pred(node)) { break; }
    nodes.push(node);
    node = node.nextSibling;
  }
  return nodes;
}
function listNext ( node , pred ) { pred = pred || func . fail ; const nodes = [ ] ; while ( node ) { if ( pred ( node ) ) { break ; } nodes . push ( node ) ; node = node . nextSibling ; } return nodes ; }
listing next siblings (until predicate hit).

@param {Node} node
@param {Function} [pred] - predicate function
listing next siblings ( until predicate hit ) .
List next node in a node list