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

Function nextMonday

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

Source from the content-addressed store, hash-verified

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

Callers 1

test.tsFile · 0.90

Calls 1

nextDayFunction · 0.90

Tested by

no test coverage detected