JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://momentjs.com/downloads/moment.min.js"></script>
<script src="http://rawgithub.com/bunkat/later/master/later.js"></script>
JavaScript
let schedule = later.parse.recur().on(0).hour().except();
console.log(schedule)
let holidays = ['2018-11-21',
'2018-11-21',
'2018-11-26',
'2018-11-29'
]
holidays = holidays.map(x => {
return new Date(x)
})
for(let h = 0; h < holidays.length; h++){
schedule = schedule.and()
.after(holidays[h]).fullDate()
.before(later.day.end(holidays[h])).fullDate();
}
//console.log(later.schedule(schedule).next(50))