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