title: distinct objects between two arrays based on a property - lodash
body: <p>Is there a direct method to get distinct objects <strong>into a new array based on object's property</strong> from two different arrays ?</p>
  
  <p>Currently looping through first array and then comparing with each object in second array to maintain a counter and push into new array, when distinct.</p>
  
  <pre><code>   var newArray = [];
     _.each(firstArray, function(item) {               //loop items in 1st []
        var count = 0;        
       _.each(secondArray, function(secondItem) {
         if(secondItem.property = item.property) {      
          count++
         }
       }  
    if(count == 0)   newArray.push(item); //push distinct item into new []
    }
  </code></pre>
  
  <p>example Data : </p>
  
  <pre><code>var array1 = [{id:1, busNum: "1234"}, {id:2, busNum:"4567"}]
  var array2 = [{id:1, busNum: "2344"}, {id:2, busNum:"1234"}]
  </code></pre>
  
  <p>want to eliminate common buses (ones with same bus number) </p>
  
  <pre><code>  var newArray = [{id:2, bus:"4567"}, {id:1, bus:"2344"]
  </code></pre>