DEV Community

loading...

Discussion on: Clean up your code with these tips!

dechamp profile image
DeChamp Author

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