Skip to main content

Function: dateMatchModifiers()

dateMatchModifiers(date, matchers, dateLib): boolean

Defined in: src/utils/dateMatchModifiers.ts:23

Checks if a given date matches at least one of the specified Matcher.

Parameters

ParameterTypeDefault valueDescription
dateDateundefinedThe date to check.
matchersMatcher | Matcher[]undefinedThe matchers to check against.
dateLibDateLibdefaultDateLibThe date utility library instance.

Returns

boolean

true if the date matches any of the matchers, otherwise false.