Source

dateTime/addDays.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ONE_DAY_MS = 86400000;
/**
 * Add n * 24 hours to given date.
 * @param date
 * @param days number of days to add. Can be negative. Default 1
 * @category dateTime
 * @module addDays
 */
function addDays(date, days) {
    if (days === void 0) { days = 1; }
    return new Date(date.valueOf() + (days * ONE_DAY_MS));
}
exports.default = addDays;