title: TypeError: Cannot find function includes in object
body: <p>I have very little experience using Google Script but I was attempting to use it to search through one column of a spreadsheet and find all instances of the string "Film Dub" (knowing that there can be only one per cell).</p>
  
  <p>Below is my code:</p>
  
  <pre><code>    function filmDub() {
        var sheet = SpreadsheetApp.getActiveSheet();
        var data = sheet.getDataRange().getValues();
        for (var i = 1; i &lt; 100; i++) {
          var s = data[i][2].toString();
          if (s.includes('Film Dub')) {
            data[5][13]++;
          }
        }
      }
  </code></pre>
  
  <p>However I keep receiving the error </p>
  
  <blockquote>
    <p><code>TypeError: Cannot find function includes in object Let's Make A Date, Film Dub, Three Headed Broadway Star, Film TV Theater Styles, Greatest Hits, World's Worst. (line 6, file "Code")</code> </p>
  </blockquote>
  
  <p>"<em>Let's Make A Date, Film Dub, Three Headed Broadway Star, Film TV Theater Styles, Greatest Hits, World's Worst</em>" is the correct content of <code>data[i][2]</code> so it is getting correct information from the spreadsheet. I have used the debugger in Google Script Editor to verify that <code>s</code> is a string (this was one of the solutions to similar questions here on Stack Overflow) but that didn't fix my problem. What else could be wrong with it?</p>