I've been searching for a way to create an array of the 90 days before today, but I haven't found a solution on StackOverflow or Google.
const now = new Date();
const daysBefore = now.setDate(priorDate.getDate() - 90);
The result I'm looking for is an array that includes the dates of the 90 days before today:
const days = [
'2021-06-03T05:45:36.685Z',
'2021-06-02T05:45:36.685Z',
'2021-06-01T05:45:36.685Z',
'2021-05-30T05:45:36.685Z',
...
]