示例:
let check = ['2021-8-3','2021-8-4','2021-8-5'] //數組
let list = [{day:'2021-8-3'},{day:'2021-8-4'},{day:'2021-8-5'}] //對象數組
let arr = []
check.forEach((v,i)=>{
arr.push({day:check[i]})
console.log(arr)
})

打印結果: