You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By clicking “Sign up for GitHub”, you agree to our terms of service and
<
8000
a class="Link--inTextBlock" href="https://docs.github.com/privacy" target="_blank">privacy statement. We’ll occasionally send you account related emails.
Currently there doesn't seem to be any straight forward method of determining whether a
moment()
is valid or not (ex, because a parse failed).Various methods (ex,
isNaN(+moment("asdf"))
) work, but it would be nice if there was a documented right way to do this.I would propose:
But there is no doubt a better way.
The text was updated successfully, but these errors were encountered: