javascript date array code example
Example: javascript date array
const pastWeek = [...Array(7).keys()].map(days => new Date(Date.now() - 86400000 * days))
const pastWeek = [...Array(7).keys()].map(days => new Date(Date.now() - 86400000 * days))