DEV Community

Discussion on: Remove all console.log() from your project in less than a minute

Collapse
 
thefluxapex profile image
Ian Pride • Edited

Won't this only work if the console command is the only thing until the end of the line? If you have anything else on the same line after it it will delete that as well. So if your line has multiple console commands in a ternary shortcut (? :, I get that this is not readability friendly, but since it's just debug anyway it's still common) or any other regular commands then you'll have a problem.