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

Function isSunday

pkgs/core/src/isSunday/index.ts:27–32  ·  view source on GitHub ↗
(
  date: DateArg<Date> & {},
  options?: IsSundayOptions | undefined,
)

Source from the content-addressed store, hash-verified

25 * //=> true
26 */
27export function isSunday(
28 date: DateArg<Date> & {},
29 options?: IsSundayOptions | undefined,
30): boolean {
31 return toDate(date, options?.in).getDay() === 0;
32}

Callers 3

addBusinessDaysFunction · 0.90
test.tsFile · 0.90
_testFunction · 0.90

Calls 1

toDateFunction · 0.90

Tested by

no test coverage detected