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