• + 0 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.