title: JavaScript - Unable to correctly access properties within object
body: <p>I have the following code:</p>
  
  <pre><code>function getObjects(name, data) {
      return data.filter(function(d) {
          return name.title == d.title;
      }).map(function(d) {
          return {
              "title": d.title,
              "sort": d.sort[0],
              "direction": d.sort[1],
              "columns": d.columns
          }
      });
  };
  var objectMatch = getObjects(searchName, searchObjects);
  console.log("------match------");
  console.log(objectMatch);
  </code></pre>
  
  <p>When I print objectMatch to the console, I get the following output:</p>
  
  <pre><code>[ { title: 'Convene LinkedIn Import - True',
  sort: '_type',
  direction: 'asc',
  columns: [ 'm-Form Factor_s', '_type', 'm-Identity_s' ] } ]
  </code></pre>
  
  <p>I am trying to access the properties inside this object, but I keep getting undefined when trying to reference them as the following:</p>
  
  <pre><code>var title = objectMatch.title;
  </code></pre>
  
  <p>What is the correct way to reference the properties inside of the objectMatch variable?</p>