/* eslint-disable eslint-comments/no-unlimited-disable */ /* eslint-disable */ // @ts-nocheck import { toDate } from '../toDate/index.ts'; import type { ContextOptions, DateArg } from '../types.ts'; /** * The {@link isWednesday} function options. */ export interface IsWednesdayOptions extends ContextOptions {} /** * @name isWednesday * @category Weekday Helpers * @summary Is the given date Wednesday? * * @description * Is the given date Wednesday? * * @param date - The date to check * @param options - An object with options * * @returns The date is Wednesday * * @example * // Is 24 September 2014 Wednesday? * const result = isWednesday(new Date(2014, 8, 24)) * //=> true */ export function isWednesday(date: DateArg & {}, options?: IsWednesdayOptions | undefined): boolean { return toDate(date, options?.in).getDay() === 3; } /* eslint-enable */