lib/recurrify.js
/**
   * Calculates the earliest start of an exception recurrence, this is the maximum
   * end date of the recurrence.
   *
   * @param {Array} exceptsArr: The set of cached exception ranges
   * @param {Array} compare: The compare function to use to determine earliest
   */
Calculates the earliest start of an exception recurrence, this is the maximum
end date of the recurrence.

@param {Array} exceptsArr: The set of cached exception ranges
@param {Array} compare: The compare function to use to determine earliest
Calculates the earliest start of an exception recurrence this is the maximum end date of the recurrence . @param { Array } exceptsArr : The set of cached exception ranges @param { Array } compare : The compare function to use to determine earliest
function calcMaxEndDate (exceptsArr, compare) {
    var result
    for (var i = 0, len = exceptsArr.length; i < len; i++) {
      if (exceptsArr[i] && (!result || compare(result, exceptsArr[i][0]))) {
        result = exceptsArr[i][0]
      }
    }
    return result
  }
function calcMaxEndDate ( exceptsArr , compare ) { var result for ( var i = 0 , len = exceptsArr . length ; i < len ; i ++ ) { if ( exceptsArr [ i ] && ( ! result || compare ( result , exceptsArr [ i ] [ 0 ] ) ) ) { result = exceptsArr [ i ] [ 0 ] } } return result }
Calculates the earliest start of an exception recurrence, this is the maximum
 end date of the recurrence.
Calculates the earliest start of an exception recurrence this is the maximum end date of the recurrence .