title: Mongoose: how to retrieve the name of every kitten in the collection?
body: <p>I have the following code based on the quickstart from Mongoose Docs.</p>
  
  <pre><code>var mongoose = require('mongoose');
  
  mongoose.connect('mongodb://localhost/test');
  
  var db = mongoose.connection;
  db.on('error', console.error.bind(console, 'connection error:'));
  db.once('open', function() {
      var kittySchema = mongoose.Schema({
          name: String
      });
  
  var kitten = mongoose.model('kitten', kittySchema);
  
  kitten.find(function(err, kittens) {
  
      if(err) 
        return console.error(err);
  
      console.log(kittens[0].name);
  });
  
  
  });
  </code></pre>
  
  <p>What I want to do is log the name from each kitten in the DB.
  The example above returns the name of the first kitten in the array with <code>kittens[0].name</code> but when I try to do the following:</p>
  
  <pre><code>for(var i in kittens){
    console.log(kittens[i].name);
  }
  </code></pre>
  
  <p>it returns <code>undefined</code> for each item in the DB.</p>
  
  <p>I have tried converting the <code>i</code> variable to a number because it comes as a string but no luck.</p>
  
  <p>How can I retrieve the property name of every item that comes with <code>.find()</code>?</p>