Remove {…} from arrow function

Convert an arrow function block body into an expression body.

Cleanup
ES2015
P42 for VS Code
P42 for GitHub
Remove {…} from arrow function

Why is this refactoring helpful?

You can write arrow functions with only a return statement using an expression body. This refactoring removes visual clutter and emphasizes the functional nature of the arrow function.

Configuration

Related Code Assists

Learn More

Available In