PageSourceSearch

https://app.clariumhealth.com/assets/addMonths-DV_ETa6N.js

js clariumhealth.com collected 2026-10-03 20:44:23 UTC 894 bytes, 23 lines download raw bytes

1import { a as toDate, i as addDays, o as requiredArgs, s as toInteger } from "./subDays-Bn5Ubekx.js";
2function addWeeks(dirtyDate, dirtyAmount) {
3	requiredArgs(2, arguments);
4	return addDays(dirtyDate, toInteger(dirtyAmount) * 7);
5}
6function addMonths(dirtyDate, dirtyAmount) {
7	requiredArgs(2, arguments);
8	var date = toDate(dirtyDate);
9	var amount = toInteger(dirtyAmount);
10	if (isNaN(amount)) return /* @__PURE__ */ new Date(NaN);
11	if (!amount) return date;
12	var dayOfMonth = date.getDate();
13	var endOfDesiredMonth = new Date(date.getTime());
14	endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
15	if (dayOfMonth >= endOfDesiredMonth.getDate()) return endOfDesiredMonth;
16	else {
17		date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
18		return date;
19	}
20}
21export { addWeeks as n, addMonths as t };
22
23//# sourceMappingURL=addMonths-DV_ETa6N.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.