You are viewing a single comment's thread. Return to all comments →
I agree, the multiple return statements are a tad heavy and go against DRY coding practices. However, your recommended solution also sacrifices readability, which IMO is more important than trying to massage your code into a single statement.
Be succinct but be readable. Let your bundlers handle the optimizations.