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

Change documented return type of getFirstDayOfWeek to number #128

Merged
merged 1 commit into from
Feb 5, 2016

Conversation

akirk
Copy link
Contributor

@akirk akirk commented Feb 5, 2016

In the documentation the return type of getFirstDayOfWeek is a bool. This should actually be a number. The code that uses this value does a strict comparison with a number

if(week.length > 0 && day.getDay() === firstDayOfWeek) {

Also that value can indeed be a number different than 0 (Sunday) and 1 (Monday), for example in Hebrew it is commonly 6 (Saturday).

gpbl added a commit that referenced this pull request Feb 5, 2016
Change documented return type of getFirstDayOfWeek to number
@gpbl gpbl merged commit 7f16015 into gpbl:master Feb 5, 2016
@gpbl
Copy link
Owner

gpbl commented Feb 5, 2016

Thanks!

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.

2 participants