-
Notifications
You must be signed in to change notification settings - Fork 83
Removed dependency on lodash.map #409
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
Conversation
@@ -33,7 +33,17 @@ module.exports = { | |||
filter: require('lodash/filter'), | |||
forEach: require('lodash/forEach'), | |||
forOwn: require('lodash/forOwn'), | |||
map: require('lodash/map'), | |||
map: function(obj, callback) { |
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.
This map
function seems unnecessary. I suggest we just update all the call sites to do what's necessary.
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.
There was only one use. I updated that to use Object.keys and removed map method from fns altogether
Summary
To reduce package size, we are trying to gradually get rid of lodash library. This PR removes the
map
function.Test plan
All tests pass after this change.