MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / isValidDate

Function isValidDate

code/songhop/www/lib/angular/angular.js:19777–19780  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

19775 }
19776
19777 function isValidDate(value) {
19778 // Invalid Date: getTime() returns NaN
19779 return value && !(value.getTime && value.getTime() !== value.getTime());
19780 }
19781
19782 function parseObservedDateValue(val) {
19783 return isDefined(val) ? (isDate(val) ? val : parseDate(val)) : undefined;

Callers 1

createDateInputTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected