@qntm-code/utils
Version:
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
15 lines (14 loc) • 394 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setEndOfYear = void 0;
const index_js_1 = require("./index.js");
/**
* Takes a given date and mutates it to the end of the given year
*/
function setEndOfYear(date) {
(0, index_js_1.setEndOfDay)(date);
date.setMonth(11);
date.setDate(31);
return date;
}
exports.setEndOfYear = setEndOfYear;