Files
klz-cables.com/.pnpm-store/v10/files/94/ca3267ed994bbdc06ad4af3880ff5f1b1c1e8e0c91c61752af4adc544288125919edbae40ce257fa986628aaba1d667defa467b437562671f7455ed89b4a87
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

31 lines
617 B
Plaintext

import { toDate } from "./toDate.js";
/**
* The {@link isMonday} function options.
*/
/**
* @name isMonday
* @category Weekday Helpers
* @summary Is the given date Monday?
*
* @description
* Is the given date Monday?
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date is Monday
*
* @example
* // Is 22 September 2014 Monday?
* const result = isMonday(new Date(2014, 8, 22))
* //=> true
*/
export function isMonday(date, options) {
return toDate(date, options?.in).getDay() === 1;
}
// Fallback for modularized imports:
export default isMonday;