title: jQuery $.each vs. JavaScript .forEach
body: <p>Take the following two ways of removing an array of elements from the DOM using jQuery:</p>
  
  <pre><code>var collection = [...]; //  An array of jQuery DOM objects
  
  // Using jQuery iteration
  $(collection).each(function(index, element) { element.remove(); });
  
  // Or as pointed out by Barmar
  $(collection).remove();
  
  // Using native iteration
  collection.forEach(function(element) { element.remove(); });
  </code></pre>
  
  <p>Is there any real difference operationally? I'd expect, unless the browser interpreter/compiler is clever enough, that there would be additional unnecessary overhead with the former method, albeit probably minor if the array is small.</p>