title: How can I check if my string contains a period in JavaScript?
body: <p>I want to be able to detect if a string has a . in it and return true/false based on that.</p>
  
  <p>For example:</p>
  
  <pre><code>"myfile.doc" = TRUE
  </code></pre>
  
  <p>vs.</p>
  
  <pre><code>"mydirectory" = FALSE;
  </code></pre>