Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isEqual

import { isEqual } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
const result = isEqual(
  new Date(2014, 6, 2, 6, 30, 45, 0),
  new Date(2014, 6, 2, 6, 30, 45, 500)
)
//=> false
function isEqual<DateType extends Date>(leftDate: DateType | number | string, rightDate: DateType | number | string): boolean;
§
isEqual<DateType extends Date>(leftDate: DateType | number | string, rightDate: DateType | number | string): boolean
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
leftDate: DateType | number | string
[src]
§
rightDate: DateType | number | string
[src]

§Return Type

§
boolean
[src]

The dates are equal