Skip to main content
variable maxDate
import { maxDate } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns the maximum of the given dates.

Use the ES6 spread syntax with Math.max to find the maximum date value, new Date() to convert it to a Date object.

type

(dates: Date[]) => unknown