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
I'm surprised no one uncovered that here:
new Date(10) == new Date(10) // false new Date(10) < new Date(11) // true new Date(11) > new Date(12) // false new Date(11) > new Date(10) // true
Two object instances are always unequal. But they decided to overload operator < and > for Date and not ==. This renders the whole thing useless.
<
>
Date
==
The text was updated successfully, but these errors were encountered:
Feel free to go ahead and create a document at src/shared/md and a respective PR
src/shared/md
Sorry, something went wrong.
const a = new Date(10); const b = new Date(10); const areEqual = (false === a < b && false === b < a)
Successfully merging a pull request may close this issue.
I'm surprised no one uncovered that here:
Two object instances are always unequal. But they decided to overload operator
<
and>
forDate
and not==
. This renders the whole thing useless.The text was updated successfully, but these errors were encountered: