Holen Sie sich 7 Tage Array
const pastWeek = [...Array(7).keys()].map(days => new Date(Date.now() - 86400000 * days))
thefazeelahmed
const pastWeek = [...Array(7).keys()].map(days => new Date(Date.now() - 86400000 * days))