I design .

I'm Ketan ‐ A Melbourne web designer, developer and illustrator with 20+ years industry experience.

Head icon.

The early return pattern in JavaScript

13 May 2022 javascript

With the early return pattern, you check for the opposite of the thing you want, and return early to end the function when that’s the case.

Read Article