UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

9 lines (8 loc) 265 B
/** * Finds the next date that is a specific weekday. * @author @dailker * @param {Date} date - Start date. * @param {number} weekday - 0=Sunday, 6=Saturday. * @returns {Date} */ export declare function nextWeekday(date: Date, weekday: number): Date;