title: Javascript: find word in string
body: <p>Does Javascript have a built-in function to see if a word is present in a string? I'm not looking for something like <code>indexOf()</code>, but rather:</p>
  
  <pre><code>find_word('test', 'this is a test.') -&gt; true
  find_word('test', 'this is a test') -&gt; true
  find_word('test', 'I am testing this out') -&gt; false
  find_word('test', 'test this out please') -&gt; true
  find_word('test', 'attest to that if you would') -&gt; false
  </code></pre>
  
  <p>Essentially, I'd like to know if my word appears, but not as part of another word. It wouldn't be too hard to implement manually, but I figured I'd ask to see if there's already a built-in function like this, since it seems like it'd be something that comes up a lot.</p>