erictgrubaugh
07/16/2018, 6:34 PMfunction maxDate(currentMax, currentValue, i, list) {
return (currentValue.date.getTime() > list[currentMax].date.getTime()) ? i : currentMax;
}
var listOfDates = /* your data */;
var maxDateIndex = listOfDates.reduce(maxDate);