aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/utils/is-date.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/src/lib/utils/is-date.js')
-rw-r--r--library/moment/src/lib/utils/is-date.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/moment/src/lib/utils/is-date.js b/library/moment/src/lib/utils/is-date.js
new file mode 100644
index 000000000..69c4d0e9c
--- /dev/null
+++ b/library/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]';
+}