how do I store data in an array if the data is more than 1? : My script like this :

    let data = [
      {day: 1, time: '08:00', note: 'madrid'},
      {day: 2, time: '08:00', note: 'barcelona'},
      {day: 3, time: '10:00', note: 'juventus'},
    ]
    let days = [7, 1, 2, 3, 4, 5, 6]
    let list = []
    days.forEach(element => {
      let item = data.find(x => x.day === element)
      if (item) {
        list.push(item)
      } else {
        list.push({ day: element, time: undefined })
      }
    })

If the script executed, it works. It will show schedule from day 1 to day 7

But my problem is variable data is dynamic. So 1 day can have more than 1 schedule. So the variable data can like this :

    let data = [
      {day: 1, time: '08:00', note: 'madrid'}, {day: 1, time: '09:00', note: 'chelsea'},
      {day: 2, time: '08:00', note: 'barcelona'}, {day: 2, time: '09:00', note: 'mu'},
      {day: 3, time: '10:00', note: 'juventus'}
    ]

maybe i should make an array inside key day. so I can save data days that are more than 1 schedule. how do i do that?