acha-framework
Version:
is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...
13 lines • 341 B
JavaScript
(function (window, undefined) {
'use strict';
Date.isDate = function (value) {
var type = toString.call(value) === '[object Date]';
if (type)
return true;
if (typeof value === 'string') {
var parsedDate = Date.parse(value);
return isNaN(value) && !isNaN(parsedDate);
}
return false;
};
}(window));