DEV Community

Discussion on: Code Smell 24 - Boolean Coercions

Collapse
 
alainvanhout profile image
Alain Van Hout

I'm a bit confused here. You say to not use coercion, but your 'right' example treats an array as a boolean.