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