aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/moment/valid.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/src/lib/moment/valid.js')
-rw-r--r--library/moment/src/lib/moment/valid.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/library/moment/src/lib/moment/valid.js b/library/moment/src/lib/moment/valid.js
new file mode 100644
index 000000000..6c0074293
--- /dev/null
+++ b/library/moment/src/lib/moment/valid.js
@@ -0,0 +1,15 @@
+import { isValid as _isValid } from '../create/valid';
+import extend from '../utils/extend';
+import getParsingFlags from '../create/parsing-flags';
+
+export function isValid () {
+ return _isValid(this);
+}
+
+export function parsingFlags () {
+ return extend({}, getParsingFlags(this));
+}
+
+export function invalidAt () {
+ return getParsingFlags(this).overflow;
+}