Amy Blankenship
Jun 14, 2022

What you call "implicit else" others call "early return pattern." I agree with other commenters that the example could be better handled with a hash or a switch statement.

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet