Files
klz-cables.com/.pnpm-store/v10/files/03/90583024f9402c65f5dc1e512406cfc17dcc82f0065563a24d406442708fa5c8a9343faf81848ff662bfa8c5ce46e615c1c9fe7890b797b6010dbc82912738
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 isFriday} function options.
*/
/**
* @name isFriday
* @category Weekday Helpers
* @summary Is the given date Friday?
*
* @description
* Is the given date Friday?
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date is Friday
*
* @example
* // Is 26 September 2014 Friday?
* const result = isFriday(new Date(2014, 8, 26))
* //=> true
*/
export function isFriday(date, options) {
return toDate(date, options?.in).getDay() === 5;
}
// Fallback for modularized imports:
export default isFriday;