So basicly I am trying to use addBusinessDays(new Date(), 3)
which sets a startdate without taking weekends into account. However I need to make use of a list of dates ( holidays ) into this aswell. I can't find any documentation on how to add those holidays to the addBusinessDays.
I am using date-fns v2+
Example code:
import { addBusinessDays } from 'date-fns';
const holidays = [
'2019-12-20'
]
console.log(addBusinessDays(new Date(), 3)) // should include holidays => 2019-12-24