import { isThisYear } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/index.js";
Examples
// If today is 25 September 2014, is 2 July 2014 in this year?
var result = isThisYear(new Date(2014, 6, 2))
//=> true
// If today is 25 September 2014, is 2 July 2014 in this year? var result = isThisYear(new Date(2014, 6, 2)) //=> true