title: Array.indexOf(value) - not giving proper index number in GAS
body: <p>In GAS,</p>
  
  <pre><code>Code.gs
  function myFunction() {
    var sheet2 = SpreadsheetApp.getActivesheet();
    var firstset = sheet2.getRange('B1:B10').getValues();
    Logger.log(firstset)
    var found = firstset.indexOf('[re]')
    Logger.log(found)
  }
  </code></pre>
  
  <p>In Google Spreadsheet Range B1:B10,</p>
  
  <pre><code>B1  we
  B2  we
  B3  re
  B4  ef
  B5  ge
  B6  er
  B7  fe
  B8  th
  B9  rg
  B10 pq
  </code></pre>
  
  <p>The answer to the code should result 2, however, Log is showing -1 (not matched). Any help</p>
  
  <p><a href="https://lh5.googleusercontent.com/-dSvXeBVw2YU/UwckLlE3GmI/AAAAAAAAAG0/fyEd_ssbP6M/s595/Capture.JPG" rel="nofollow">Screenshot of Logger.log</a> </p>