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

Check if a date is before another date.

Use the greater than operator (<) to check if the first date comes before the second one.

type

(dateA: Date, dateB: Date) => unknown