push a array object into another array object if the value not exists
<p>Need to push the array object(arr1) valeus into another array object(arr2) if the value not exist. The existing values will not push into another array.</p>

<pre><code>var arr1 = [{
    name: 'fred'
}, {
    name: 'bill'
}, {
    name: 'ted'
}, {
    name: 'james'
}];

var arr2 = [{
    name: 'spil'
}, {
    name: 'fred'
}, {
    name: 'bill'
},{
    name: 'paul'
}, {
    name: 'stone'
}];

function add(name) {
    var found = arr1.some(function (el) {
      return el.name === name;
    });
    if (!found) {
        arr1.push(arr2);
    }
    return arr2;
}
</code></pre>

<p><a href="https://jsfiddle.net/c2udgyc1/" rel="nofollow">Fiddle</a></p>