aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bower_components/moment/src/lib/utils/is-date.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bower_components/moment/src/lib/utils/is-date.js')
-rw-r--r--public/bower_components/moment/src/lib/utils/is-date.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/bower_components/moment/src/lib/utils/is-date.js b/public/bower_components/moment/src/lib/utils/is-date.js
new file mode 100644
index 0000000..69c4d0e
--- /dev/null
+++ b/public/bower_components/moment/src/lib/utils/is-date.js
@@ -0,0 +1,3 @@
+export default function isDate(input) {
+ return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
+}