Replace _.noop with arrow Functionpro
Replace _.noop
with () => undefined
.

Why is this refactoring helpful?
With the introduction of arrow functions in ES2015, you can express _.noop
with similarly short standard JavaScript. This refactoring reduces the dependency on Lodash.
Configuration
- Code Assist ID (for the configuration file):
replace-lodash-noop-with-arrow-function
- You can configure custom keyboard shortcuts with this code action kind:
refactor.convert.p42.replace-lodash-noop-with-arrow-function