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) 381 B
/** * Checks if date falls within range allowing for some tolerance (e.g., plus/minus 1 day). * @author @dailker * @param {Date} d * @param {Date} start * @param {Date} end * @param {number} [tolerance=0] - Tolerance in days * @returns {boolean} */ export declare function isDateInRangeWithTolerance(d: Date, start: Date, end: Date, tolerance?: number): boolean;