Dapatkan serangkaian tujuh hari terakhir

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