UNPKG

@technobuddha/library

Version:
20 lines (19 loc) 565 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidDate = void 0; var isNaN_1 = __importDefault(require("lodash/isNaN")); /** * Determine if a date is valid * * * @param input The date to check * @returns true, if the date is valid */ function isValidDate(input) { return !isNaN_1.default(input.valueOf()); } exports.isValidDate = isValidDate; exports.default = isValidDate;