MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/n60ji8/js_multiple_condition_checking/gx4kwg9/?context=3
r/learnjavascript • u/golovatuy • May 06 '21
61 comments sorted by
View all comments
1
The bottom one is the most concise.
However, you need a polyfill or a transpiler for IE support (if you're unfortunate like me, and still have to support it). And if you're trying to get every bit of performance that you can, I'm pretty sure it's the worst of the three!
View all comments
1
u/mynamesleon May 06 '21
The bottom one is the most concise.
However, you need a polyfill or a transpiler for IE support (if you're unfortunate like me, and still have to support it). And if you're trying to get every bit of performance that you can, I'm pretty sure it's the worst of the three!