title: How to remove element from array if values matched?
body: <p>If i find values in object i want to delete those values from array. </p>
  
  <p>What would be the best solution to accompolished this task ?</p>
  
  <p>ctrl.js</p>
  
  <pre><code>  var selectedOwners = [];
              $scope.deleteOwner = function(dataItem){
                  var workerKey;
                  var fullName;
                  angular.forEach(selectedOwners,function(val,index){
                    workerKey = val.workerKey;
                    fullName = val.fullName;
                  })
                  if(dataItem.workeyKey === workerKey || dataItem.fullName === fullName){ 
                    selectedOwners.splice(workerKey,fullName);
                  }      
              }
  </code></pre>
  
  <p>Array and Object </p>
  
  <pre><code>Array  selectedOwners = [{"fullName":"Johnson, Rocio","workerKey":3506},{"fullName":"Johnson, John S.","workerKey":571},{"fullName":"Johnson, Camille A.","workerKey":1368}]
  
  Object {
      "workerKey": 3506,
      "fullName": "Johnson, Rocio",
  }
  </code></pre>