Rocky_Mountain_Vending/.pnpm-store/v10/files/3b/5f5e518c972f55e88b011f150af0c83ca0e84edb6f85aff831eea365fe5480f90adde9d91d0a2d26452ec6c2605b2b87075503a15a0f764c560d6322fc87e2
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

37 lines
825 B
Text

import { addDays } from "./addDays.js";
import { constructNow } from "./constructNow.js";
import { isSameDay } from "./isSameDay.js";
/**
* The {@link isTomorrow} function options.
*/
/**
* @name isTomorrow
* @category Day Helpers
* @summary Is the given date tomorrow?
* @pure false
*
* @description
* Is the given date tomorrow?
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date is tomorrow
*
* @example
* // If today is 6 October 2014, is 7 October 14:00:00 tomorrow?
* const result = isTomorrow(new Date(2014, 9, 7, 14, 0))
* //=> true
*/
export function isTomorrow(date, options) {
return isSameDay(
date,
addDays(constructNow(options?.in || date), 1),
options,
);
}
// Fallback for modularized imports:
export default isTomorrow;