iamkun / iamkun/dayjs

`dayjs.isDayjs() == false` if dayjs object is external

Open
#2,518 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hello,

It seems if two projects A and B use dayjs and we compare A dayjs object using B dayjs, this comparison is resulting in false. A workaround is to rely on `$isDayjsObject`.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce the comparison with two projects using Day.js, then inspect the isDayjs() entry point and the documented $isDayjsObject workaround. Done means an object created by one project is recognized by the other without breaking existing same-project checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.