UNPKG

636 BTypeScriptView Raw
1/**
2 * @name isWednesday
3 * @category Weekday Helpers
4 * @summary Is the given date Wednesday?
5 *
6 * @description
7 * Is the given date Wednesday?
8 *
9 * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10 *
11 * @param date - The date to check
12 *
13 * @returns The date is Wednesday
14 *
15 * @example
16 * // Is 24 September 2014 Wednesday?
17 * const result = isWednesday(new Date(2014, 8, 24))
18 * //=> true
19 */
20export declare function isWednesday<DateType extends Date>(
21 date: DateType | number | string,
22): boolean;