Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 335 Bytes

arrow-return-shorthand.md

File metadata and controls

13 lines (7 loc) · 335 Bytes

Pattern: Non-shorthand arrow function

Issue: -

Description

Suggests to convert () => { return x; } to () => x.

Arrow function body can be simplified by omitting the curly braces and the keyword return.

Further Reading