/* 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 isMonday} function options. */ export interface IsMondayOptions extends ContextOptions {} /** * @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: DateArg & {}, options?: IsMondayOptions | undefined): boolean { return toDate(date, options?.in).getDay() === 1; } /* eslint-enable */