I am looping through my dateIndex Array, but i get dateIndex[i] as undefined, but when i console.log the dateIndex[i].index, the value is displayed.
let dateI