Rocky_Mountain_Vending/.pnpm-store/v10/files/a1/ed25113ccb555a85152aa0976de9d750cd2069bd0c215b0e551c06e18aa096eff4463bf2820c075b12afa7ea326fbe89bd82b6a21a09c3e4af13cd3b8fc603
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

38 lines
1,021 B
Text

"use strict";
exports.isExists = isExists;
var _index = require("./_core/getMonth.cjs");
var _index2 = require("./_core/getDate.cjs");
var _index3 = require("./_core/getFullYear.cjs");
var _index4 = require("./_core/newDate.cjs");
/**
* @name isExists
* @category Common Helpers
* @summary Is the given date exists?
*
* @description
* Checks if the given arguments convert to an existing date.
*
* @param year - The year of the date to check
* @param month - The month of the date to check
* @param day - The day of the date to check
*
* @returns `true` if the date exists
*
* @example
* // For the valid date:
* const result = isExists(2018, 0, 31)
* //=> true
*
* @example
* // For the invalid date:
* const result = isExists(2018, 1, 31)
* //=> false
*/
function isExists(year, month, day) {
const date = (0, _index4.newDate)(year, month, day);
return (
(0, _index3.getFullYear)(date) === year &&
(0, _index.getMonth)(date) === month &&
(0, _index2.getDate)(date) === day
);
}