if (currentDay.day() !== MONDAY) { do { currentDay = this.$moment(currentDay).subtract(1, 'days'); days.unshift(currentDay); } while (currentDay.day() !== MONDAY); }