DEV Community

Discussion on: What's the worst code you have seen by a senior dev?

Collapse
 
savagepixie profile image
SavagePixie

My thoughts exactly. You might want to check that the value is specifically true, rather than any other non-falsy value.