Rocky_Mountain_Vending/.pnpm-store/v10/files/16/40ab76a8f3e1b949e253719a1cb285328b638b96e73792e9111f17aba54a8c96eafc410e85b39f1cf1f25f2e747f390f9ec5944d9e81565f50131b7e8e0618
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

26 lines
570 B
Text

import { toDate } from "./toDate.js";
/**
* @name isFuture
* @category Common Helpers
* @summary Is the given date in the future?
* @pure false
*
* @description
* Is the given date in the future?
*
* @param date - The date to check
*
* @returns The date is in the future
*
* @example
* // If today is 6 October 2014, is 31 December 2014 in the future?
* const result = isFuture(new Date(2014, 11, 31))
* //=> true
*/
export function isFuture(date) {
return +toDate(date) > Date.now();
}
// Fallback for modularized imports:
export default isFuture;