title: string compare in javascript that returns a boolean
body: <p>Is there a function in javascript that compares a string and returns a boolean? I found .match but it returns the strings that matched. I was hoping there was something else so that I would have a lesser code in comparing a string. Since I wanted to check if a string has this word and proceed else not.</p>
  
  <p>thanks</p>