lib/recurrify.js
/**
   * Returns the next value in an array using the function passed in as compare
   * to do the comparison. Skips over null or undefined values.
   *
   * @param {Array} arr: The array of values
   * @param {Function} compare: The comparison function to use
   */
Returns the next value in an array using the function passed in as compare
to do the comparison. Skips over null or undefined values.

@param {Array} arr: The array of values
@param {Function} compare: The comparison function to use
Returns the next value in an array using the function passed in as compare to do the comparison . Skips over null or undefined values . @param { Array } arr : The array of values @param { Function } compare : The comparison function to use
function findNext (arr, compare) {
    var next = arr[0]
    for (var i = 1, len = arr.length; i < len; i++) {
      if (arr[i] && compare(next, arr[i])) {
        next = arr[i]
      }
    }
    return next
  }
function findNext ( arr , compare ) { var next = arr [ 0 ] for ( var i = 1 , len = arr . length ; i < len ; i ++ ) { if ( arr [ i ] && compare ( next , arr [ i ] ) ) { next = arr [ i ] } } return next }
Returns the next value in an array using the function passed in as compare
 to do the comparison.
Returns the next value in an array using the function passed in as compare to do the comparison .