MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / isValidDate

Function isValidDate

web/static/bower_components/angular/angular.js:21873–21876  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

21871 }
21872
21873 function isValidDate(value) {
21874 // Invalid Date: getTime() returns NaN
21875 return value && !(value.getTime && value.getTime() !== value.getTime());
21876 }
21877
21878 function parseObservedDateValue(val) {
21879 return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;

Callers 1

createDateInputTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected