UNPKG

ng2-validation

Version:
11 lines 322 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