title: NodeJS - Removing a particular item from an Array
body: <p>I'm getting list of all collections from mongodb, in form of an array</p>
  
  <pre><code>mongoose.connection.db.listCollections().toArray(function (err, names) {
     if (err) {
        console.log(err);
     }
     console.log(names);
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>[ { name: 'system.indexes' },
    { name: 'books' },
    ...
  </code></pre>
  
  <p>I want to remove that <code>system.indexes</code> from the array.  I tried playing around with some functions like:</p>
  
  <ul>
  <li>Splice</li>
  <li>Pop, Shift</li>
  <li>Underscore's <code>without</code>function</li>
  </ul>
  
  <p>Well, Honestly I don't even know if they were intended for this.</p>