GetValues as lowercase from Google Apps Script
<p>I'm writing a google apps script where I get the values from a spreadsheet..but since I need to see if there is a match with a variable, I need to do make sure the values are in lowercase.</p>

<pre><code>  var sheet  = SpreadsheetApp.getActiveSpreadsheet();
  var column = sheet.getRange(A:A); 
  var values = column.getValues(); 
</code></pre>

<p>then I want to loop through the values to see if there is a match, like this:
row=0;</p>

<pre><code>  while ( values[row] &amp;&amp; values[row][0] !== data ) {

     // do something
    row ++;
  }
</code></pre>

<p>My question is this..while I can make sure the variable "data" is lowercase, how can I make sure values[row] and values[row][0] are also lowercase?</p>