Rocky_Mountain_Vending/.pnpm-store/v10/files/0d/61557d0485983c95a2c8cfe13c42bf79a728faaaf639699651a60e14a5f2f7243851319fed497f1ff8353f8eaad2f8966fb9f18066c42e521e894cecd30fe2
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

10 lines
363 B
Text

/**
* Checks to see if a value is not only a `Date` object,
* but a *valid* `Date` object that can be converted to a
* number. For example, `new Date('blah')` is indeed an
* `instanceof Date`, however it cannot be converted to a
* number.
*/
export function isValidDate(value: any): value is Date {
return value instanceof Date && !isNaN(value as any);
}