title: JavaScript - include() - A check to see if multiple elements are in an array
body: <p>hope you can help. I've got an empty array in my project which fill up as certain buttons are pressed (using push()). I want to know when a certain set of elements are in the array.</p>
  
  <p>In the below code, it seems to work, the 3 elements are all in the array so it prints 'yes'. If I take out the last element ("TR"), it prints 'nope'. However, if I take out either of the first 2 elements, it prints 'yes'. It seems to be only focusing on the last element in the includes() function.</p>
  
  <p>Is there any way to have the include() or something similar, check to see if all elements are in my array? Keep in mind that the array could have many more elements and they won't be sorted.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>var arr = ["TL", "TM", "TR"];
  
  if (arr.includes("TL" &amp;&amp; "TM" &amp;&amp; "TR")){
      console.log("yes");
  } else {
      console.log("nope");
  }
  </code></pre>