PHP 8.2.30
Preview: index.js Size: 931 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/date-fns/nextFriday/index.js

"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = nextFriday;
var _index = _interopRequireDefault(require("../nextDay/index.js"));
var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Friday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * //=> Fri Mar 27 2020 00:00:00
 */
function nextFriday(date) {
  (0, _index2.default)(1, arguments);
  return (0, _index.default)(date, 5);
}
module.exports = exports.default;

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
161 B lrw-r--r-- 2026-02-28 00:36:52
Edit Download
931 B lrw-r--r-- 2026-02-28 00:34:44
Edit Download
1.36 KB lrw-r--r-- 2026-02-28 00:32:28
Edit Download
100 B lrw-r--r-- 2026-02-28 00:36:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).