Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isSameISOWeekYear

import { isSameISOWeekYear } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year?
const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2))
//=> true
function isSameISOWeekYear<DateType extends Date>(dateLeft: DateType | number | string, dateRight: DateType | number | string): boolean;
§
isSameISOWeekYear<DateType extends Date>(dateLeft: DateType | number | string, dateRight: DateType | number | string): boolean
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
dateLeft: DateType | number | string
[src]
  • The first date to check
§
dateRight: DateType | number | string
[src]
  • The second date to check

§Return Type

§
boolean
[src]

The dates are in the same ISO week-numbering year