title: Is there any clean way to code a group of || testing to see if the value of a variable is in one of them?
body: <p>I have code like this:</p>
  
  <pre><code>if (view == 'delete' || view =='edit' || view == 'new') {} 
  </code></pre>
  
  <p>Is there a more clean way that I can code this without using an external library. It just does not look too good to have all the || and maybe more later.</p>