Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added invalidAt function to get invalid unit index #915

Merged
merged 2 commits into from Jul 27, 2013

Conversation

ichernev
Copy link
Contributor

isValid is boolean, so its not very helpful in determining which section of
a date is wrong. inavlidAt returns the index of the broken token, where 0 is
year and 6 is millisecond.

Requested in #570.

isValid is boolean, so its not very helpful in determining which section of
a date is wrong. inavlidAt returns the index of the broken token, where 0 is
year and 6 is millisecond.
@timrwood
Copy link
Member

Aside from the JSHint issue, looks good to me.

@icambron
Copy link
Member

Is that really a good jshint rule?

@ichernev
Copy link
Contributor Author

Yes, empty loops are not very common and people tend to not notice them. Merging!

ichernev added a commit that referenced this pull request Jul 27, 2013
Added invalidAt function to get invalid unit index
@ichernev ichernev merged commit 1d7d553 into moment:develop Jul 27, 2013
@ichernev ichernev deleted the features/invalid-at branch July 27, 2013 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants