DEV Community

Discussion on: 2 Ways to Convert Values to Boolean in JavaScript

Collapse
 
wrldwzrd89 profile image
Eric Ahnell

Yes, after thinking about it, I realized that you’re coercing to Boolean and negating, then undoing negation. My “shorthand” remark was meant in the sense of fewer characters to type.