DEV Community

Discussion on: Clean up your code with these tips!

 
dechamp profile image
DeChamp

I like your clear view on this. I agree that the regex is over kill when we are only checking two values.