Rocky_Mountain_Vending/.pnpm-store/v10/files/d5/5f5b506d9c4bb271a1148db7b6da1088ec514658d5dda93e51204b85a74f02d9084c7b271b15c1f53c0930431857f949fa38a7566a0f951dd3fd2271f8ae35
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

29 lines
691 B
Text

import { toDate } from "./toDate.js";
/**
* @name isEqual
* @category Common Helpers
* @summary Are the given dates equal?
*
* @description
* Are the given dates equal?
*
* @param dateLeft - The first date to compare
* @param dateRight - The second date to compare
*
* @returns The dates are equal
*
* @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
*/
export function isEqual(leftDate, rightDate) {
return +toDate(leftDate) === +toDate(rightDate);
}
// Fallback for modularized imports:
export default isEqual;