import { isSameYear } from "https://deno.land/x/date_fns@v2.5.1/index.js";
Examples
// Are 2 September 2014 and 25 September 2014 in the same year?
var result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
//=> true
// Are 2 September 2014 and 25 September 2014 in the same year? var result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) //=> true