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

Function previousSunday

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

Source from the content-addressed store, hash-verified

30 * //=> Sun June 20 2021 00:00:00
31 */
32export function previousSunday<
33 DateType extends Date,
34 ResultDate extends Date = DateType,
35>(
36 date: DateArg<DateType>,
37 options?: PreviousSundayOptions<ResultDate> | undefined,
38): ResultDate {
39 return previousDay(date, 0, options);
40}

Callers 1

test.tsFile · 0.90

Calls 1

previousDayFunction · 0.90

Tested by

no test coverage detected