title: JavaScript, Typescript switch statement: way to run same code for two cases?
body: <p>Is there a way to assign two different case values to the same block of code without copy and pasting? For example, below 68 and 40 should execute the same code, while 30 is not related.</p>
  
  <pre><code>case 68:
     //Do something
  break;
  
  case 40:
     //Do the same thing
  break;
  
  case 30:
     //Do something different
  break;
  </code></pre>
  
  <p>Is it incorrect to think something like this should work (even though it obviously doesn't)?</p>
  
  <pre><code>case 68 || 40:
     //Do something
  break;
  
  case 30:
     //Do something else
  break;
  </code></pre>