title: jquery remove element from array during foreach loop
body: <p>I want to look for an item in an array and if i find it then i want to remove it and then break out of the loop. This is what i have but it only jumps back to the start of the second $.each</p>
  
  <pre><code>var tempArray = dataArray;
  
  $.each(users, function(i, val) {
      var name = val.name;
  // loop over each obj and match
  $.each(tempArray, function(k, kval) {
     if(name === kval.username){
          tempArray.splice(k, 1);
      return;
     }
      });
  });         
  </code></pre>
  
  <p>How can i jump back to the start of the first loop so that it starts iterating over the nxt name? Thanks</p>