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

Function isLastDayOfMonth

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

Source from the content-addressed store, hash-verified

24 * //=> true
25 */
26export function isLastDayOfMonth(
27 date: DateArg<Date> & {},
28 options?: IsLastDayOfMonthOptions | undefined,
29): boolean {
30 const _date = toDate(date, options?.in);
31 return +endOfDay(_date, options) === +endOfMonth(_date, options);
32}

Callers 3

test.tsFile · 0.90
_testFunction · 0.90
differenceInMonthsFunction · 0.90

Calls 3

toDateFunction · 0.90
endOfDayFunction · 0.90
endOfMonthFunction · 0.90

Tested by

no test coverage detected