title: Javascript 'if' statement using .includes()
body: <p>I have an array containing file paths as strings. I need to search through this array &amp; make a new array including only those which contain a certain word. How would I create an if statement that includes the 'includes' method?</p>
  
  <p>Here's my code so far:</p>
  
  <pre><code>var imagePaths = [...]
  
  if(imagePaths.includes('index') === 'true'){
   ???
  }
  </code></pre>
  
  <p>Thank you in advance</p>