title: How to get value from array of object
body: <p>I'm learning Node.js and using mssql to retrieve employee data. I get the following recordset back and having trouble grab the first and last name:</p>
  <pre><code>{ recordsets: [ [ [Object] ] ],
    recordset: [ { uid: 'jd123', fName: 'John', lName: 'Doe' } ],
    output: {},
    rowsAffected: [ 1 ] 
  }
  </code></pre>
  <p>I have tried the following but had no luck:</p>
  <pre><code>D:\LearnNodeJs\Udemy\routes\processes.js
  
  // var submitter = recordset[0]['fName']; // TypeError: Cannot read property 'fName' of undefined
                                 ^
  //var submitter = recordset[0].fName; // TypeError: Cannot read property 'fName' of undefined
  var submitter = recordset.fName; // undefined
  
  console.log(submitter);
  </code></pre>