UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

14 lines 434 B
/** * Check if a Date instance is valid * @param date{*} * @return {boolean} * @example * // How to detect an "invalid date" Date instance in JavaScript? * const wrongDate = new Date("invalid_date"); * console.log(isValidDate(wrongDate)); // => false * * const validDate = new Date(0); * console.log(isValidDate(validDate)); // => true */ export function isValidDate(date: any): boolean; //# sourceMappingURL=index.d.ts.map