Hacker News new | ask | show | jobs
by pvorb 2039 days ago
Okay, thanks. And why would it be faster? Optimizing !! in the JS engine seems trivial to me.
1 comments

I suppose it would be easy and might already be in some engines, but it's still discouraged because you can't rely on that optimisation (there are many engines), it's semantically incorrect, and most importantly much less readable - especially for someone not tok familiar with the JS type system.