import { endOfMinute } from "https://deno.land/x/date_fns@v2.12.0/index.js";
Examples
// The end of a minute for 1 December 2014 22:15:45.400:
var result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
//=> Mon Dec 01 2014 22:15:59.999
// The end of a minute for 1 December 2014 22:15:45.400: var result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) //=> Mon Dec 01 2014 22:15:59.999