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

Function isThisYear

pkgs/core/src/isThisYear/index.ts:30–38  ·  view source on GitHub ↗
(
  date: DateArg<Date> & {},
  options?: IsThisYearOptions | undefined,
)

Source from the content-addressed store, hash-verified

28 * //=> true
29 */
30export function isThisYear(
31 date: DateArg<Date> & {},
32 options?: IsThisYearOptions | undefined,
33): boolean {
34 return isSameYear(
35 constructFrom(options?.in || date, date),
36 constructNow(options?.in || date),
37 );
38}

Callers 2

test.tsFile · 0.90
_testFunction · 0.90

Calls 3

isSameYearFunction · 0.90
constructFromFunction · 0.90
constructNowFunction · 0.90

Tested by

no test coverage detected