title: Find and remove objects in an array based on a key value in JavaScript
body: <p>I have been trying several approaches on how to find an object in an array, where ID = var, and if found, remove the object from the array and return the new array of objects.</p>
  <p><strong>Data:</strong></p>
  <pre><code>[
      {&quot;id&quot;:&quot;88&quot;,&quot;name&quot;:&quot;Lets go testing&quot;},
      {&quot;id&quot;:&quot;99&quot;,&quot;name&quot;:&quot;Have fun boys and girls&quot;},
      {&quot;id&quot;:&quot;108&quot;,&quot;name&quot;:&quot;You are awesome!&quot;}
  ]
  </code></pre>
  <p>I'm able to search the array using jQuery $grep;</p>
  <pre><code>var id = 88;
  
  var result = $.grep(data, function(e){
       return e.id == id;
  });
  </code></pre>
  <p>But how can I delete the entire object when id ==  88, and return data like the following?</p>
  <p><strong>Data:</strong></p>
  <pre><code>[
      {&quot;id&quot;:&quot;99&quot;, &quot;name&quot;:&quot;Have fun boys and girls&quot;},
      {&quot;id&quot;:&quot;108&quot;, &quot;name&quot;:&quot;You are awesome!&quot;}
  ]
  </code></pre>