Files
klz-cables.com/.pnpm-store/v10/files/3c/627a6c5ec49d05da792a3e8f18b37ee7690fd7b37654320f9400699686f849a73ebfd8a388e926cffa8a9dbab951c7fbf0e70c31f35e9aa4e6cd2b81c25909
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

28 lines
760 B
Plaintext

import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link isWeekend} function options.
*/
export interface IsWeekendOptions extends ContextOptions<Date> {}
/**
* @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
*/
export declare function isWeekend(
date: DateArg<Date> & {},
options?: IsWeekendOptions | undefined,
): boolean;