Bitwise operators in Javascript are mostly used for numerical conversions/computations, because sometimes they're much faster than their Math or pa...
For further actions, you may consider blocking this person and/or reporting abuse
Thank you for a great explaining article. As you say the performance gains vs legibility means it's more something worth understanding than using. Handy for the situations where someone else has used a trick like these without explanation.
I still think there's no such thing as practical applications of bitwise operations.
They're mystery meat, fine if you're someone who knows what's in there, but dangerous and hard to understand for anyone else.
Thanks!!
For me in Chromium 71.0.3578 there were no performance differences.
Except parseInt was incredibly slower. "does it actually go through string" - one wonders.
great article! :)