title: Google Script to see if text contains a value
body: <p>I have a google form that when the user submits it will trigger my function to run which is creating a summary of what they submitted as a Google Doc. I know it can automatically send an email but I need it formatted in a way that my user can edit it later.</p>
  <p>There are some check boxes on the form -- but the getResponse() is only populated with the items checked and I need it to show all possible choices. Then I will indicate somehow what was checked.</p>
  <p>I can't find a way to see if a text contains a value.
  Like in Java with a String, I could do either <code>.contains(&quot;9th&quot;)</code> or <code>.indexOf(&quot;9th&quot;) &gt;=0</code>  and then I would know that the String contains 9th.  How can I do this with google scripts?  Looked all through documentation and I feel like it must be the easiest thing ever.</p>
  <pre><code>var grade = itemResponse.getResponse();
  </code></pre>
  <p>Need to see if grade contains 9th.</p>