ng2-validation
Version:
11 lines • 322 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function isPresent(obj) {
return obj !== undefined && obj !== null;
}
exports.isPresent = isPresent;
function isDate(obj) {
return !/Invalid|NaN/.test(new Date(obj).toString());
}
exports.isDate = isDate;
//# sourceMappingURL=lang.js.map
;