Rocky_Mountain_Vending/.pnpm-store/v10/files/bd/79c97ab2a6c4644e15bfbc4c7b9fa7d0d68bf3224ea90b7a7c008c34ba64dd6f4d2e270caf8cf54456a432430bc1c4ec340008a0d58d7c534cd501a7ff9d8a
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

42 lines
1.2 KiB
Text

"use strict";
exports.isSameISOWeekYear = isSameISOWeekYear;
var _index = require("./startOfISOWeekYear.cjs");
var _index2 = require("./_lib/normalizeDates.cjs");
/**
* The {@link isSameISOWeekYear} function options.
*/
/**
* @name isSameISOWeekYear
* @category ISO Week-Numbering Year Helpers
* @summary Are the given dates in the same ISO week-numbering year?
*
* @description
* Are the given dates in the same ISO week-numbering year?
*
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
*
* @param laterDate - The first date to check
* @param earlierDate - The second date to check
* @param options - An object with options
*
* @returns The dates are in the same ISO week-numbering year
*
* @example
* // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year?
* const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2))
* //=> true
*/
function isSameISOWeekYear(laterDate, earlierDate, options) {
const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)(
options?.in,
laterDate,
earlierDate,
);
return (
+(0, _index.startOfISOWeekYear)(laterDate_) ===
+(0, _index.startOfISOWeekYear)(earlierDate_)
);
}