DEV Community

Discussion on: The Semantics of Falsy Values

Collapse
 
somedood profile image
Basti Ortiz • Edited

That's just a microoptimization to be completely honest.

And I never used Boolean as a constructor. If I did, I would've used the new keyword. The way I used Boolean is merely a normal function call (like any other function call) to explicitly convert a value to a boolean. It's vaguely similar to how Object#toString converts any object to a string.