{"ast":null,"code":"import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isSunday\n * @category Weekday Helpers\n * @summary Is the given date Sunday?\n *\n * @description\n * Is the given date Sunday?\n *\n * @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).\n *\n * @param date - The date to check\n *\n * @returns The date is Sunday\n *\n * @example\n * // Is 21 September 2014 Sunday?\n * const result = isSunday(new Date(2014, 8, 21))\n * //=> true\n */\nexport function isSunday(date) {\n  return toDate(date).getDay() === 0;\n}\n\n// Fallback for modularized imports:\nexport default isSunday;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}