@floydspace/ngx-validation
Version:
angular 2, 4 set of custom validation directives
11 lines • 332 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
;