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