Hi! I’m ZanderStylised (pixellated) picture of Zander, I make web things

Code Notes

šŸ”¦Switch(true)

You can use switch (true) instead of multiple if/else statements

const x = 1

switch (true) {
  case x === 1:
    // ...
    break
  case 5 < x:
    // ...
    break
}