DEV Community

Discussion on: How would you refactor this JS function?

Collapse
 
nombrekeff profile image
Keff

On the point of the hasLine variable, it's just my personal preference, I really like how readable it makes the conditions.

Thread Thread
 
lgrammel profile image
Lars Grammel

It definitely makes the code more understandable.