how to merge 2 arrays based on properties (not index)
<p>As we know that <code>jQuery.extend(true, obj1, obj2)</code> method for deep copying the object's properties from obj2 to obj1. In case of array, it copies the property based on index. But I need copying based on some property (e.g. id in my case) as per following example:</p>

<pre><code>obj1 = [{id:"id1", name:"name1"},{id:"id2", name:"name2"}]
obj2 = [{id:"id3", name:"name3"}{id:"id1", name:"name1_modified"}]
</code></pre>

<p><code>jQuery.extend</code> will return:</p>

<pre><code>[{id:"id3", name:"name3"}{id:"id1", name:"name1_modified"}]
</code></pre>

<p>But I need output as:</p>

<pre><code>[{id:"id1", name:"name1_modified"},{id:"id2", name:"name2"}{id:"id3", name:"name3"}]
</code></pre>

<p>is there any method/library to accomplish this?</p>
