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

Function normalizeDates

pkgs/core/src/_lib/normalizeDates/index.ts:19–28  ·  view source on GitHub ↗
(
  context: ContextFn<Date> | undefined,
  ...dates: Array<DateArg<Date> & {}>
)

Source from the content-addressed store, hash-verified

17): Date[];
18
19export function normalizeDates(
20 context: ContextFn<Date> | undefined,
21 ...dates: Array<DateArg<Date> & {}>
22) {
23 const normalize = constructFrom.bind(
24 null,
25 context || dates.find((date) => typeof date === "object"),
26 );
27 return dates.map(normalize);
28}

Callers 15

differenceInBusinessDaysFunction · 0.90
normalizeIntervalFunction · 0.90
isSameYearFunction · 0.90
formatDistanceFunction · 0.90
clampFunction · 0.90
differenceInISOWeekYearsFunction · 0.90
differenceInDaysFunction · 0.90
closestToFunction · 0.90
intlFormatDistanceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected