UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

14 lines (13 loc) 368 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setEndOfDay = void 0; const index_js_1 = require("./index.js"); /** * Takes a given date and mutates it to the end of the given day */ function setEndOfDay(date) { (0, index_js_1.setEndOfHour)(date); date.setHours(23); return date; } exports.setEndOfDay = setEndOfDay;