\href{https://travis-ci.org/ljharb/is-date-object}{\texttt{ }} \href{https://david-dm.org/ljharb/is-date-object}{\texttt{ }} \href{https://david-dm.org/ljharb/is-date-object\#info=devDependencies}{\texttt{ }} \mbox{[}\mbox{]}\mbox{[}license-\/url\mbox{]} \href{http://npm-stat.com/charts.html?package=is-date-object}{\texttt{ }}

\href{https://npmjs.org/package/is-date-object}{\texttt{ }}

\href{https://ci.testling.com/ljharb/is-date-object}{\texttt{ }}

Is this value a JS Date object? This module works cross-\/realm/iframe, and despite ES6 @to\+String\+Tag.\hypertarget{md_sfcode_node_modules_is_date_object_README_autotoc_md13046}{}\doxysection{Example}\label{md_sfcode_node_modules_is_date_object_README_autotoc_md13046}

\begin{DoxyCode}{0}
\DoxyCodeLine{var isDate = require('is-\/date-\/object');}
\DoxyCodeLine{var assert = require('assert');}
\DoxyCodeLine{}
\DoxyCodeLine{assert.notOk(isDate(undefined));}
\DoxyCodeLine{assert.notOk(isDate(null));}
\DoxyCodeLine{assert.notOk(isDate(false));}
\DoxyCodeLine{assert.notOk(isDate(true));}
\DoxyCodeLine{assert.notOk(isDate(42));}
\DoxyCodeLine{assert.notOk(isDate('foo'));}
\DoxyCodeLine{assert.notOk(isDate(function () \{\}));}
\DoxyCodeLine{assert.notOk(isDate([]));}
\DoxyCodeLine{assert.notOk(isDate(\{\}));}
\DoxyCodeLine{assert.notOk(isDate(/a/g));}
\DoxyCodeLine{assert.notOk(isDate(new RegExp('a', 'g')));}
\DoxyCodeLine{}
\DoxyCodeLine{assert.ok(isDate(new Date())); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_date_object_README_autotoc_md13047}{}\doxysection{Tests}\label{md_sfcode_node_modules_is_date_object_README_autotoc_md13047}
Simply clone the repo, {\ttfamily npm install}, and run {\ttfamily npm test} 