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.

12 lines (11 loc) 304 B
/** * Splits a date range into an array of month-range chunks. * @author @dailker * @param {Date} start * @param {Date} end * @returns {Array<{start: Date, end: Date}>} */ export declare function splitDateRangeByMonth(start: Date, end: Date): Array<{ start: Date; end: Date; }>;