@sebgroup/frontend-tools
Version:
A set of frontend tools
12 lines (10 loc) • 315 B
JavaScript
/**
* Is valid date: Checks if the date is valid
* @returns {boolean} true if the date is a valid date and false if not
* @param date
*/
function isValidDate(date) {
return !!(date && date instanceof Date && !isNaN(date.getTime()));
}
export { isValidDate };
//# sourceMappingURL=isValidDate.js.map