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.

10 lines (9 loc) 405 B
/** * Adds N business days to a date, skipping weekends and optional holidays. * @author @dailker * @param {Date} date - The start date. * @param {number} days - Number of business days to add. * @param {Date[]} [holidays=[]] - Optional array of holidays. * @returns {Date} The resulting date. */ export declare function addBusinessDays(date: Date, days: number, holidays?: Date[]): Date;