merging arrays with jquery grep
<p>I have two array ArrayA and ArrayB. Array B may have some values in it that belong to ArrayA. I'm looking to have ArrayB contain all the values of ArrayA. So far, this is what I have:</p>

<pre><code>for (i=0 ; i &lt; ArrayB.length; i++)
{
  ArrayB = jQuery.grep(ArrayB, function (a) {
  ....
  };
};
</code></pre>

<p>I'm having some trouble with this function. Please let me know if you have any suggestions.
Thanks.</p>
