UNPKG

@resk/core

Version:

An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla

15 lines (14 loc) 540 B
/** * Checks if the given object is a valid date object. * * @param {any} dateObj The object to check. * @returns {boolean} True if the object is a valid date object, false otherwise. * * Example: * ```ts * console.log(DateHelper.DateHelper.isDateObj(new Date())); // Output: true * console.log(DateHelper.DateHelper.isDateObj({})); // Output: false * console.log(DateHelper.DateHelper.isDateObj("2022-01-01")); // Output: false * ``` */ export default function isDateObj(dateObj: any): dateObj is Date;