title: Double Pipe in a Switch Case Javascript
body: <p>I have a switch case, and I want to direct 3 different possible cases to one outcome using the double pipe. </p>
  
  <p><a href="http://jsfiddle.net/qCA3G/" rel="nofollow">http://jsfiddle.net/qCA3G/</a></p>
  
  <pre><code>var type = "JPEG"
  
  switch(type){
      case "PNG" || "JPG" || "JPEG":
      alert("works");
      break;
      default:
      alert("not working");
      break;
  }
  </code></pre>
  
  <p>The obvious thing to do would be making a separate case for each of the file types, but there must be a more efficient way, that resembles my attempt.</p>