//#region src/lib/date-helpers.ts
/**
* Snap a value in minutes to the nearest interval.
*
* @example snapMinutes(37, 15) → 30
* @example snapMinutes(38, 15) → 45
*/
function snapMinutes(minutes, interval) {
	return Math.round(minutes / interval) * interval;
}
//#endregion
export { snapMinutes };

//# sourceMappingURL=index377.js.map