-
Notifications
You must be signed in to change notification settings - Fork 143
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
[Feature Request] comparison and "default" to value #384
Comments
@QAnders Thanks for your feedback! I would normally suggest the babel plugin to do what you're doing, but it looks like you've already looked into that. I've considered trying to utilize some other javascript features to do what you're suggesting but I haven't decided if it would be backwards compatible breaking. This is something I'd like to investigate to see if its possible to natively allow for value comparisons without adding too much size to the library. |
Love the module and I want to start with a huge Thank you for your efforts!
I'd love two addons in functionality, the first being to "default" to
.value
if omitted, meaning if I do this it would comparec1.value === c2.value
:Another one we frequently use is various comparisons that becomes a bit long and "messy" sometimes because of the
.value
and that we have to "prepare" thecurrency
objects.(I am aware of the babel add-on but we'd like to keep our dependency stack as small as possible).
Ideally, I'd like to see something like:
Just some thoughts... Love the module either way!!! 🥇
The text was updated successfully, but these errors were encountered: