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