What is the best solution to simulate the "IN" operator in Javascript to simplify redundant logical ORs
<p>I have an Ajax request that can return more than one valid value, so i am using the "OR" operator to analyse the response, like this:</p>

<pre><code>if(json.reply == "d" || json.reply == "e" || json.reply == "i" || json.reply == "j" || json.reply == "k" )
</code></pre>

<p>My real code has more comparisons yet, so is there a more readable and elegant sintaxe in Javascript to write this? Something like the SQL "IN" operator:</p>

<pre><code>if( json.reply IN ("d", "e", "i", "j", "k") )
</code></pre>

<p>Thanks for any suggestions!</p>
