/**
 * Checks if `value` is a Date object.
 *
 * @param value The value to check.
 * @returns Returns `true` if `value` is a Date object, `false` otherwise.
 *
 * @example
 * const value1 = new Date();
 * const value2 = '2024-01-01';
 *
 * console.log(isDate(value1)); // true
 * console.log(isDate(value2)); // false
 */
export function isDate(value: unknown): value is Date {
  return value instanceof Date;
}
