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.

11 lines (10 loc) 386 B
/** * Finds the Nth occurrence of a specific weekday in a month. * @author @dailker * @param {number} year * @param {number} month - 0=Jan, 11=Dec * @param {number} weekday - 0=Sun, 6=Sat * @param {number} n - Nth occurrence * @returns {Date|null} */ export declare function dateNthWeekdayOfMonth(year: number, month: number, weekday: number, n: number): Date | null;