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

Function nextSunday

pkgs/core/src/nextSunday/index.ts:32–40  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  options?: NextSundayOptions<ResultDate> | undefined,
)

Source from the content-addressed store, hash-verified

30 * //=> Sun Mar 29 2020 00:00:00
31 */
32export function nextSunday<
33 DateType extends Date,
34 ResultDate extends Date = DateType,
35>(
36 date: DateArg<DateType>,
37 options?: NextSundayOptions<ResultDate> | undefined,
38): ResultDate {
39 return nextDay(date, 0, options);
40}

Callers 1

test.tsFile · 0.90

Calls 1

nextDayFunction · 0.90

Tested by

no test coverage detected