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

Add a more thorough explanation of the .isValid function in the docs #1859

Closed
wants to merge 1 commit into from

Conversation

OmarOmeiri
Copy link

No description provided.

@codecov
Copy link

codecov bot commented Apr 18, 2022

Codecov Report

Merging #1859 (2819edb) into dev (8757477) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev     #1859   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          181       181           
  Lines         2064      2064           
  Branches       537       537           
=========================================
  Hits          2064      2064           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8757477...2819edb. Read the comment docs.

@iamkun
Copy link
Owner

iamkun commented Apr 21, 2022

Looks nice, can you submit it to the doc website, please?

https://github.com/dayjs/dayjs-website

- Browser
- Non-strict check.

Only checks if the value can be `instanceof Date`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to check if it could be parsed to a Date time, is it easy to understand?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is very clear. Just to get it straight, you'd prefer if I change this: ...value can be instanceof Date. to this: checks if value could be parsed to a Date time?

@iamkun
Copy link
Owner

iamkun commented May 6, 2022

close dayjs/dayjs-website#71

@iamkun iamkun closed this May 6, 2022
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