Problem with documentation for isSameYear function
See original GitHub issueThere is an issue with the documentation for isSameYear function
The documentation does not show the third parameter for options, there for this returns false because the week does not starts on monday
The problem
💻 Code demonstrating the problem
import isSameYear from 'date-fns/isSameYear'
const start = new Date("2021-12-28") // a monday
const end = new Date("2022-01-02") // a sunday
🙁 Actual behavior
console.log(_.isSameWeek(start, end))
false
🙂 Expected behavior
console.log(_.isSameWeek(start, end), { weekStartsOn: 1 })
true
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
date-fns - modern JavaScript date utility library
date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js. Documentation.
Read more >Code documentation — Quality Assurance of ... - GitHub Pages
When your code is structured as functions or classes, these functional units can be efficiently documented using docstrings. Docstrings are specialised multi- ...
Read more >Importance of Documentation | The Workstream - Atlassian
Companies that use documentation to catalog past projects, collect research, and share decisions benefit by reducing re-work that wastes precious time you ...
Read more >Integrity of the Healthcare Record: Best Practices for EHR ...
This practice brief provides guidance for maintaining documentation integrity while using automated EHR functions. Ensuring Documentation Integrity.
Read more >Principles for Nursing Documentation
These enduring issues inform and underline the principles and recommendations in this publication. © 2010 American Nurses Association. All rights reserved. No ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bjornwiberg I think you made a simple mistake here, Dec 28 2021 was a Tuesday and not a Monday. (EDIT: that wasn’t particularly relevant to the issue though, adding more details).
yes i think thats the case