title: if statements in an arrow function
body: <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>storyWords.filter(word =&gt; if (unnecessaryWords.includes(word)){
    continue;
  }
  else{
    betterWords.push(word);
  }) ;                 </code></pre>
  </div>
  </div>
  </p>
  
  <p>I keep getting an error "Unexpected token if", I was wondering if when you use an arrow function the syntax for if statements is different than in a regular function.</p>