Skip to content

Commit

Permalink
Implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 15, 2014
1 parent a107259 commit dd0fd96
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
@@ -0,0 +1,12 @@
'use strict';

var getDay = Date.prototype.getDay;

module.exports = function isDateObject(value) {
try {
getDay.call(value);
return true;
} catch (e) {
return false;
}
};

0 comments on commit dd0fd96

Please sign in to comment.