Get column values by column name not column index
<p>I'm new to Google Apps Script.  I want to get the value of a specific cell by it's column name, not the column index.  Here is what I have:</p>

<pre><code>var rows = sheet.getDataRange();
var values = rows.getValues();
var row =values[1];
var rowStaffName = row[0];
</code></pre>

<p>Instead of using <code>row[0]</code>, I want to use the column name.  Is there an easy way to do that?</p>