UNPKG

@floydspace/ngx-validation

Version:

angular 2, 4 set of custom validation directives

11 lines 332 B
"use strict"; 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