Skip to content
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

Bug 1413156 - Remove lodash .forEach() usage for objects #3406

Merged
merged 1 commit into from Apr 6, 2018
Merged

Bug 1413156 - Remove lodash .forEach() usage for objects #3406

merged 1 commit into from Apr 6, 2018

Conversation

CupWithCoffee
Copy link
Contributor

I found two uses of _.forEach which could be replaced by ES6 features.

@@ -477,7 +477,7 @@ treeherder.factory('thJobFilters', [
}

function _stripClearableFieldFilters(locationSearch) {
_.forEach(locationSearch, function (val, field) {
Object.keys(locationSearch, function (field) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should have a forEach like the first change. Would you also convert these to => functions while you're here? Thanks!

Copy link
Contributor

@camd camd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works great! Thanks!!

@camd camd merged commit 501179c into mozilla:master Apr 6, 2018
@CupWithCoffee CupWithCoffee deleted the Bug-1413156 branch April 10, 2018 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants