lib/parser.js
function captureNumber($, $siblings, capture) {
  var nodes = [];

  if (typeof capture === 'undefined') {
    capture = 1;
  }

  $($siblings).each(function(n, $node) {
    if (n < capture) {
      nodes.push($.html($node))
    }
  });

  return nodes;
}
function captureNumber($, $siblings, capture) {
  var nodes = [];

  if (typeof capture === 'undefined') {
    capture = 1;
  }

  $($siblings).each(function(n, $node) {
    if (n < capture) {
      nodes.push($.html($node))
    }
  });

  return nodes;
}
function captureNumber ( $ , $siblings , capture ) { var nodes = [ ] ; if ( typeof capture === 'undefined' ) { capture = 1 ; } $ ( $siblings ) . each ( function ( n , $node ) { if ( n < capture ) { nodes . push ( $ . html ( $node ) ) } } ) ; return nodes ; }
Capture fixed number of nodes
Capture fixed number of nodes