Rocky_Mountain_Vending/.pnpm-store/v10/files/6d/f4ea470c968af8bbc417e74cf1bca8c59158c8625e712439cd4c0462a4c4d36e7ed130d5d3cb9750997fc4edef9da6abea070875c51713c8d836600b706596
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

30 lines
736 B
Text

"use strict";
exports.isWeekend = isWeekend;
var _index = require("./toDate.cjs");
/**
* The {@link isWeekend} function options.
*/
/**
* @name isWeekend
* @category Weekday Helpers
* @summary Does the given date fall on a weekend?
*
* @description
* Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`).
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date falls on a weekend
*
* @example
* // Does 5 October 2014 fall on a weekend?
* const result = isWeekend(new Date(2014, 9, 5))
* //=> true
*/
function isWeekend(date, options) {
const day = (0, _index.toDate)(date, options?.in).getDay();
return day === 0 || day === 6;
}