title: Replace/remove empty entries in Array
body: <p>I have this Array: <code>[home, info, mail,,,, something, stuff, other]</code></p>
  
  <p>But I want to remove or replace the <code>,,</code> with <code>,</code></p>
  
  <p>I tried: <code>allIDs.replace(",,", ",");</code> But it doesn't seem to work with Arrays</p>
  
  <p>The reason there are empty entries is this:</p>
  
  <pre><code>$(document).find('DIV').each(function(){
      allIDs.push(this.id); })
  </code></pre>
  
  <p>I'm indexing all DIV's ID names, to check if there are duplicates and then rename the currently generated DIV ID..</p>
  
  <p>Alternatively I'd like to <code>find()</code> only the DIV's that have an ID defined..</p>