From e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 28 Jun 2025 17:26:46 -0700 Subject: initial commit: scaffolding --- node_modules/date-fns/nextMonday/index.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 node_modules/date-fns/nextMonday/index.js (limited to 'node_modules/date-fns/nextMonday/index.js') diff --git a/node_modules/date-fns/nextMonday/index.js b/node_modules/date-fns/nextMonday/index.js new file mode 100644 index 0000000..413bb7f --- /dev/null +++ b/node_modules/date-fns/nextMonday/index.js @@ -0,0 +1,31 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextMonday; +var _index = _interopRequireDefault(require("../nextDay/index.js")); +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); +/** + * @name nextMonday + * @category Weekday Helpers + * @summary When is the next Monday? + * + * @description + * When is the next Monday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Monday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Monday after Mar, 22, 2020? + * const result = nextMonday(new Date(2020, 2, 22)) + * //=> Mon Mar 23 2020 00:00:00 + */ +function nextMonday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 1); +} +module.exports = exports.default; \ No newline at end of file -- cgit v1.2.3