So I'm working on some filters where users can select even from ex: "Friday to Tuesday" but how to I slice these from an array of dates
var days = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]
So how do I slice from index from 5 to 2 which should return:
["friday", "saturday", "sunday", "monday", "tuesday"]