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) 246 B
/** * Gets the start of the week for a date. * @author @dailker * @param {Date} date * @param {number} [firstDay=1] - 0=Sunday, 1=Monday * @returns {Date} */ export declare function startOfWeek(date: Date, firstDay?: number): Date;