-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Recover default value #80
Comments
What is your use-case? It would be helpful to know what specifically you need it for. |
For example a value that a user is changing on some configs from default 40 to let's say 77 and I want to have a button so the user can "Reset to default" and make that field 40 again. |
I agree. I think it could be useful with a |
Thanks. Glad you liked the idea ;) |
@issuehunt has funded $40.00 to this issue.
|
Any updates on when this is going to get implemented? |
I believe this is already implemented I will be doing some tests tomorrow, but I believe it's all done ;) |
Ok so I have run a simple test, and I it's working.
Output shows
|
@sindresorhus has rewarded $36.00 to @husek. See it on IssueHunt
|
I know the "get" method has an argument that is the default value to return in case the item doesn't exists.
Is there a way to get that value, even if the item exists? Or I would have to delete the key and call get on it?
IssueHunt Summary
husek has been rewarded.
Backers (Total: $40.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: