![Armin Ronacher on X: "Apparently this switch(true) nonsense is coming straight from MDN. Thanks. https://t.co/zneEk589PB https://t.co/k1Qig3rRDB" / X Armin Ronacher on X: "Apparently this switch(true) nonsense is coming straight from MDN. Thanks. https://t.co/zneEk589PB https://t.co/k1Qig3rRDB" / X](https://pbs.twimg.com/media/F4srRnpWoAENc40.jpg)
Armin Ronacher on X: "Apparently this switch(true) nonsense is coming straight from MDN. Thanks. https://t.co/zneEk589PB https://t.co/k1Qig3rRDB" / X
![Andrey Starovoyt on X: "TIL: switch (true) in JavaScript as an alternative if-else O_o https://t.co/O7TyqmqSZu" / X Andrey Starovoyt on X: "TIL: switch (true) in JavaScript as an alternative if-else O_o https://t.co/O7TyqmqSZu" / X](https://pbs.twimg.com/media/EmN5akXXYAAe4yr.png)
Andrey Starovoyt on X: "TIL: switch (true) in JavaScript as an alternative if-else O_o https://t.co/O7TyqmqSZu" / X
![javascript - Why my code with switch(true) and Array.concat() doesn't work properly - Stack Overflow javascript - Why my code with switch(true) and Array.concat() doesn't work properly - Stack Overflow](https://i.stack.imgur.com/XUCcW.png)