How to map incremental values inside an array for to select and change all of them at once
state.formData[0].EndDate = nextDayIfSelected state.formData[1].End