src/chronos/utils/start-end-of.ts
Function startOf
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function startOf(date: Date, unit: UnitOfTime, isUTC?: boolean): Date {
const _date = cloneDate(date);
// the following switch intentionally omits break keywords
// to utilize falling through the cases.
switch (unit) {