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

Function eachWeekendOfYear

pkgs/core/src/eachWeekendOfYear/index.ts:40–50  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  options?: EachWeekendOfYearOptions<ResultDate>,
)

Source from the content-addressed store, hash-verified

38 * ]
39 */
40export function eachWeekendOfYear<
41 DateType extends Date,
42 ResultDate extends Date = DateType,
43>(
44 date: DateArg<DateType>,
45 options?: EachWeekendOfYearOptions<ResultDate>,
46): ResultDate[] {
47 const start = startOfYear(date, options);
48 const end = endOfYear(date, options);
49 return eachWeekendOfInterval({ start, end }, options);
50}

Callers 1

test.tsFile · 0.90

Calls 3

startOfYearFunction · 0.90
endOfYearFunction · 0.90
eachWeekendOfIntervalFunction · 0.90

Tested by

no test coverage detected