title: How do a selectively delete an element from an array
body: <p>In nodejs, I have an array that looks somewhat like this. </p>
  
  <pre><code>["var/sys/log","var/sys/log/image", "var/sys/.dawn/noon", 
  "var/sys/.sbs/rise", "var/sys/.iris/quell", "....." ]
  </code></pre>
  
  <p>The array index is around 50-70</p>
  
  <p>Now I want to delete all the elements that contain a "." expect for the entries that contain .sbs. </p>
  
  <p>Any help here would be great. I have been racking my head off.</p>
  
  <p>Edit after comments</p>
  
  <p>I have tried array.filter, array.splice(foo.indexOf('.'>-1). But it deletes everything including .sbs.</p>
  
  <p>And if it has sbs in it, I shouldn't delete it</p>
  
  <p>Runtime is Nodejs v8 and not a browser.</p>