Skip to main content

expandBlockedDays

Stentor API Reference


Stentor API Reference / stentor-utils/src / expandBlockedDays

Function: expandBlockedDays()

expandBlockedDays(blockedDays, fromDate, toDate): string[]

Defined in: packages/stentor-utils/src/date-time/blockedHolidays.ts:217

Every date (YYYY-MM-DD) covered by the blocked days within the inclusive range, sorted and deduped. A day with an endDate blocks the inclusive range; an endDate before date is ignored.

Parameters​

blockedDays​

readonly BlockedDay[] | undefined

fromDate​

string

toDate​

string

Returns​

string[]