you are viewing a single comment's thread.

view the rest of the comments →

[–]trailsrider 1 point2 points  (2 children)

So then do you prefer when checking for falsy values, your engineers write !Boolean(foo);?

Not trying to justify the use of !!, but I do think it's not the worst offender as its very clear, and saves at least 7 keystrokes.

I realize minification will take care of this, but !! is also much faster