MCPcopy
hub / github.com/date-fns/date-fns / eachWeekendOfMonth

Function eachWeekendOfMonth

pkgs/core/src/eachWeekendOfMonth/index.ts:43–53  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  options?: EachWeekendOfMonthOptions<ResultDate>,
)

Source from the content-addressed store, hash-verified

41 * // ]
42 */
43export 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}

Callers 1

test.tsFile · 0.90

Calls 3

startOfMonthFunction · 0.90
endOfMonthFunction · 0.90
eachWeekendOfIntervalFunction · 0.90

Tested by

no test coverage detected