expandBlockedHolidays
Stentor API Reference / stentor-utils/src / expandBlockedHolidays
Function: expandBlockedHolidays()
expandBlockedHolidays(
holidays,fromDate,toDate):string[]
Defined in: packages/stentor-utils/src/date-time/blockedHolidays.ts:195
Every date (YYYY-MM-DD) an enabled holiday falls on within the inclusive range, sorted and deduped. Pure date math - the caller decides which local dates the range covers.
Parameters​
holidays​
readonly BlockedHoliday[] | undefined
fromDate​
string
toDate​
string
Returns​
string[]