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
Package name: @toss/date@1.1.8
@toss/date@1.1.8
As JavaScript Date objects support relational operations, using libraries like date-fns is not necessary.
Date
date-fns
export function isEqualOrBefore(lhs: Date, rhs: Date) { return lhs <= rhs; // return isEqual(lhs, rhs) || isBefore(lhs, rhs); } export function isEqualOrAfter(lhs: Date, rhs: Date) { return lhs >= rhs; // return isEqual(lhs, rhs) || isAfter(lhs, rhs); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Package Scope
Package name:
@toss/date@1.1.8
Overview
As JavaScript
Date
objects support relational operations, using libraries likedate-fns
is not necessary.Describe the solution you'd like
Additional context
The text was updated successfully, but these errors were encountered: