We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
dayjs('random srting').isoWeekday() returns 7
dayjs('random srting').isoWeekday()
7
Expected behavior It should returns NaN (as it do dayjs('random srting').day())
NaN
dayjs('random srting').day()
Information
The text was updated successfully, but these errors were encountered:
This behaviour is intended,
// the implementation proto.isoWeekday = function(week) { if (!this.$utils().u(week)) { return this.day(this.day() % 7 ? week : week - 7) } return this.day() || 7 }
Sorry, something went wrong.
Why it is 7?
No branches or pull requests
Describe the bug
dayjs('random srting').isoWeekday()
returns
7
Expected behavior
It should returns
NaN
(as it dodayjs('random srting').day()
)Information
The text was updated successfully, but these errors were encountered: