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