DEV Community

loading...

Discussion on: 5 ways to refactor if/else statements in JS functions

Collapse
marln94 profile image
marln94

I've been using guard clauses for a while but I didn't know they were called like that!
Great post 🎉

Collapse
sylwiavargas profile image
Sylwia Vargas Author

Thank you! Yeah they definitely ✨ spark joy ✨