import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.32/getDecade/index.js";
Examples
// Which decade belongs 27 November 1942?
var result = getDecade(new Date(1942, 10, 27))
//=> 1940
// Which decade belongs 27 November 1942? var result = getDecade(new Date(1942, 10, 27)) //=> 1940