DEV Community

Discussion on: Stop using if else

Collapse
 
thecodingcrow profile image
thecodingcrow • Edited

neat approach to improving readability (and apparently also efficiency), I like!

small suggestion from my point of view, you called the valid characters object listOfCharacters but I would rather go with validCharacters or sth similiar. Since the variable is technically not a list

Some comments have been hidden by the post's author - find out more