Compare a value with all array elements in one statement
<p>For example:</p>

<pre><code>if (value == array[size]) //if the value (unique) is present in an array then do something
</code></pre>

<p>can this be done in one statement without having to call a function or a basic for loop statement?</p>
