( date: DateArg<DateType>, options?: EachWeekendOfMonthOptions<ResultDate>, )
| 41 | * // ] |
| 42 | */ |
| 43 | export function eachWeekendOfMonth< |
| 44 | DateType extends Date, |
| 45 | ResultDate extends Date = DateType, |
| 46 | >( |
| 47 | date: DateArg<DateType>, |
| 48 | options?: EachWeekendOfMonthOptions<ResultDate>, |
| 49 | ): ResultDate[] { |
| 50 | const start = startOfMonth(date, options); |
| 51 | const end = endOfMonth(date, options); |
| 52 | return eachWeekendOfInterval({ start, end }, options); |
| 53 | } |
no test coverage detected