title: Remove item from array using foreach - JavaScript
body: <p>Is it possible to remove something from an array using foreach?</p>
  
  <pre><code>var array = [1,2,3,4,5,6,7,8];
  
  array.forEach(function(data){
      if (data == 4) {
          // do something here
      }
  });
  
  console.log(array);
  </code></pre>