@qntm-code/utils
Version:
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
12 lines (11 loc) • 309 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setEndOfSecond = void 0;
/**
* Takes a given date and mutates it to the end of the given second
*/
function setEndOfSecond(date) {
date.setMilliseconds(999);
return date;
}
exports.setEndOfSecond = setEndOfSecond;