Type Alias: DayOfWeek
DayOfWeek: {
dayOfWeek
:number
|number
[]; }
Match dates being one of the specified days of the week (0-6
, where 0
is
Sunday).
Type declaration​
Name | Type |
---|---|
dayOfWeek | number | number [] |
Example​
// Match Sundays
const matcher: DayOfWeek = { dayOfWeek: 0 };
// Match weekends
const matcher: DayOfWeek = { dayOfWeek: [0, 6] };