title: JavaScript simple profanity filter
body: <p>Hi I want to create very basic profanity filter in JavaScript.</p>
  
  <p>I've an array called <code>badWords</code> and also I've constant called <code>description</code>. I won't to check whether there is any bad word contains in that <code>description</code>.</p>
  
  <p>This is what I've done upto now.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const badWords = ["Donald Trump","Mr.Burns","Sathan"];
  
  const description = "Mr.Burns entered to the hall."
  let isInclude = false;
  badWords.forEach(word=&gt;{
    if(description.includes(word)){
    isInclude = true
    }
  })
  
  console.log(`Is include`,isInclude)</code></pre>
  </div>
  </div>
  </p>
  
  <p>Only problem is I've to loop through <code>badWords</code> array. Is there a way to get this done without looping through the array?</p>