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

Function isSaturday

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

Source from the content-addressed store, hash-verified

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

Callers 3

test.tsFile · 0.90
_testFunction · 0.90
addBusinessDaysFunction · 0.90

Calls 1

toDateFunction · 0.90

Tested by

no test coverage detected