Javascript split conditional
<p>Here we go, I have variables :</p>

<pre><code>var possible_country = 'United States|Germany|Canada|United Kingdom';
var current_country = 'United States';
</code></pre>

<p>I want use conditional like this as functions</p>

<pre><code>function dummy(c, p){
 var arr = p.split('|');

 /* Code I want */

 if(c === arr[0] || c === arr[1] || c === arr[2] || c === arr[3])
 {
  alert('Voila');
 }
}
</code></pre>

<p>So I can call dummy function like this</p>

<pre><code>dummy(current_country, possible_country);
</code></pre>
