diff options
Diffstat (limited to 'node_modules/date-fns/esm/previousSunday/index.js')
| -rwxr-xr-x | node_modules/date-fns/esm/previousSunday/index.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/node_modules/date-fns/esm/previousSunday/index.js b/node_modules/date-fns/esm/previousSunday/index.js deleted file mode 100755 index 8bb1d65..0000000 --- a/node_modules/date-fns/esm/previousSunday/index.js +++ /dev/null @@ -1,23 +0,0 @@ -import requiredArgs from "../_lib/requiredArgs/index.js"; -import previousDay from "../previousDay/index.js"; -/** - * @name previousSunday - * @category Weekday Helpers - * @summary When is the previous Sunday? - * - * @description - * When is the previous Sunday? - * - * @param {Date | number} date - the date to start counting from - * @returns {Date} the previous Sunday - * @throws {TypeError} 1 argument required - * - * @example - * // When is the previous Sunday before Jun, 21, 2021? - * const result = previousSunday(new Date(2021, 5, 21)) - * //=> Sun June 20 2021 00:00:00 - */ -export default function previousSunday(date) { - requiredArgs(1, arguments); - return previousDay(date, 0); -}
\ No newline at end of file |
