UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

14 lines (13 loc) 354 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dateIsInPast = void 0; /** * Checks if a date is in the past relative to now. * @author @dailker * @param {Date} date * @returns {boolean} */ function dateIsInPast(date) { return date.getTime() < Date.now(); } exports.dateIsInPast = dateIsInPast;