iamkun / iamkun/dayjs

diff() is a manipulation function, not a display function

Open
#1,387 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
In the docs, documentation for `diff()` is found under the _difference_ topic, filed under the top-level heading, _display_. However, diffing is not concerned with the display of dates but of manipulating them, ergo it is misclassified.

**Expected behavior**
_Difference_ topic should be filed under _manipulation_ heading.

**Information**
n/a

Contributor guide

Open the contributing guide

Research direction

Start in the Day.js documentation where the diff() documentation is listed under the difference topic and display heading. Move the difference topic under the manipulation heading, then verify that the documentation navigation and topic placement reflect the issue's expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.