title: How to display and access individual key values with JADE
body: <p>When I loop through my object everything works and I can render all instances of it to the page. The problem is that I want to be able to select
  a specific object key whereby every object that has that key renders its corresponding value to the page.</p>
  
  <p>My code is below with a more clear explanation</p>
  
  <p><strong>Mongoose.js schema</strong></p>
  
  <pre><code>var synthSchema = mongoose.Schema({
      patchName: String,
      synths: Object,
  
  });
  
  var SynthObject = mongoose.model('Synth', synthSchema);
  </code></pre>
  
  <p><strong>Node.js / Express code</strong></p>
  
  <pre><code>var synthPatch = new SynthObject({})
  
  synthPatch.synths = [{
          synth_name: "blah blah",
          xpos: 12,
          ypos: 23
      },
  
      {
          synth_name: "more blah blah",
          xpos: 02,
          ypos: 238
      },
  
  ]
  
  
  
  synthPatch.save(function (err, ok) {
    if (err) return console.error(err);
  
  });
  
  
  app.get('/returnedData', function(req, res){
    SynthObject.find({}, function (err, docs) {
      res.render('returnedData', {
        title: 'Tasks index view',
        docs: docs
      });
    });
  });
  </code></pre>
  
  <p><strong>JADE</strong></p>
  
  <pre><code>table.table
  
        each synth in docs
          tr
            td #{synth}
  
            ul
  </code></pre>
  
  <p><strong>The above code outputs ( from MongoDB)</strong></p>
  
  <pre><code>{ synths: [ 
  
      { synth_name: 'blah blah', xpos: 12, ypos: 23 }, 
      { synth_name: 'more blah blah', xpos: 2, ypos: 238 } 
  
    ],
  
   _id: 5352c4c46f5127d40e7ba8ec, __v: 0 
  
  }
  </code></pre>
  
  <p><strong>Ok so far so good. The above code is just what I wanted, so lets loop through it and get keys and values</strong></p>
  
  <p><strong>JADE code</strong></p>
  
  <pre><code>   each synthObject in docs
          tr
            each value, key in synthObject.synths
                each v, k in value
                    td #{k} #{v} 
  </code></pre>
  
  <p><strong>Perfect...this outputs the following</strong></p>
  
  <pre><code>ypos 23 xpos 12 synth_name 'blah blah'
  ypos 238    xpos 2  synth_name  'more blah blah'
  </code></pre>
  
  <p>However, now I run into my problem which is I want to select something like all of the <strong>synth_name</strong> from every object and output all of the synth_name <em>values</em>. I've tried a bunch of things but can't get it to work.</p>