lib/parser.js
function findNext(type, element) {
  let tries = 5
  let next = element

  do {
    if (next.is(type)) {
      return next
    }

    next = next.next()
  }
  while (--tries)

  return next
}
function findNext(type, element) {
  let tries = 5
  let next = element

  do {
    if (next.is(type)) {
      return next
    }

    next = next.next()
  }
  while (--tries)

  return next
}
function findNext ( type , element ) { let tries = 5 let next = element do { if ( next . is ( type ) ) { return next } next = next . next ( ) } while ( -- tries ) return next }
Find next special typed element in siblings
@param {string} type
@param {Cheerio} element
Find next special typed element in siblings