I have an array of objects. Each object has a unique userTestrId. Here is the code that I am using when I want to delete one of the objects. Is this the most efficient way I can perform the delete? What I am concerned with is once a row has been deleted the code will still go all the way through the array even though there is no chance of another entry: 

```
var id = 99;
self.tests.forEach(function (elem, index) {
   if (elem['userTestId'] === id)
      self.tests.splice(index, 1);
   });
}

```