JS find multiple values in array : <p>I have an array which the values are : </p>

<pre><code>1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
</code></pre>

<p>then i want to check this <strong>values</strong> to the array : </p>

<pre><code>14,15,16,17
</code></pre>

<p>i tried with this but didn't work :</p>

<pre><code>function contains(a, toFind) {
    for (var i = 0; i &lt; a.length; i++) {
        if (equalArray(a[i], toFind)) {
            return true;
        }
    }
    return false;
}

function equalArray(a, b) {
    if (a.length === b.length) {
        for (var i = 0; i &lt; a.length; i++) {
            if (a[i] !== b[i]) {
                return false;
            }
        }
        return true;
    } else {
        return false;
    }
}
</code></pre>

<p>Anyone can help me out ? </p>
