4 ms·
Okay, thanks. And why would it be faster? Optimizing !! in the JS engine seems trivial to me.
by pvorb 6y ago
Okay, thanks. And why would it be faster? Optimizing !! in the JS engine seems trivial to me.
- franga2000 6y agoI 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.