const minDate = dates => new Date(Math.min(...dates));