Saying, instead of if (condition) { do something } I use condition && do something. Does it have improvement in optimization?
No. Moreover, if the code needs optimizing, any modern JavaScript engine will do the necessary optimizing for you.
Write clear code. Optimize if and when there's a problem the engine doesn't fix for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With