-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Update LRUCache.js #984
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
Update LRUCache.js #984
Conversation
Added a clear function for cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please - at the very least - fix your indentation. Why is this feature necessary? Why can't I just call obj.cache.clear()
?
Fixed indentation
obj.clear()
is less clear then obj.cache.clear()
imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why returns "this"?
@appgurueu should I close this? We both seem to think it is unnecessary and less readable.
Uh oh!
There was an error while loading. Please reload this page.
Added a clear function for cache
Welcome to the JavaScript community
Open in Gitpod know more
Describe your change:
Checklist:
Example:
UserProfile.js
is allowed butuserprofile.js
,Userprofile.js
,user-Profile.js
,userProfile.js
are notFixes: #{$ISSUE_NO}
.