import { differenceInCalendarISOWeekYears } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/index.js";
Examples
// How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012?
var result = differenceInCalendarISOWeekYears(
new Date(2012, 0, 1),
new Date(2010, 0, 1)
)
//=> 2
// How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? var result = differenceInCalendarISOWeekYears( new Date(2012, 0, 1), new Date(2010, 0, 1) ) //=> 2