Replace _.noop with arrow Function

Replace _.noop with () => undefined.

Refactoring (Convert)
Modernization
ES2015
P42 for VS Code
Pro & Business
Replace _.noop with arrow Function

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.

Related Code Actions

Learn More

Available In