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

Function isThisWeek

pkgs/core/src/isThisWeek/index.ts:42–51  ·  view source on GitHub ↗
(
  date: DateArg<Date> & {},
  options?: IsThisWeekOptions,
)

Source from the content-addressed store, hash-verified

40 * //=> false
41 */
42export function isThisWeek(
43 date: DateArg<Date> & {},
44 options?: IsThisWeekOptions,
45): boolean {
46 return isSameWeek(
47 constructFrom(options?.in || date, date),
48 constructNow(options?.in || date),
49 options,
50 );
51}

Callers 2

test.tsFile · 0.90
_testFunction · 0.90

Calls 3

isSameWeekFunction · 0.90
constructFromFunction · 0.90
constructNowFunction · 0.90

Tested by

no test coverage detected