superset-frontend/src/views/segmentation/utilities/processSegmentStats.js
// Find earliest date in array of dates
Find earliest date in array of dates
Find earliest date in array of dates
function findMaxDate(dates) {
  var maxIdx = 0;
  for (var i = 0; i < dates.length; i++) {
    if (dates[i] > dates[maxIdx]) maxIdx = i;
  }
  return dates[maxIdx];
}
function findMaxDate ( dates ) { var maxIdx = 0 ; for ( var i = 0 ; i < dates . length ; i ++ ) { if ( dates [ i ] > dates [ maxIdx ] ) maxIdx = i ; } return dates [ maxIdx ] ; }
Find earliest date in array of dates
Find earliest date in array of dates