UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

9 lines 375 B
/** * Checks if two dates are on the same day. * @param {Date} date1 - The first date. * @param {Date} date2 - The second date. * @returns {boolean} True if both dates are on the same day, false otherwise. * @throws {TypeError} If either date is not valid. */ export default function isSameDay(date1: Date, date2: Date): boolean; //# sourceMappingURL=isSameDay.d.ts.map