title: How do I check that each value is being pushed to the second array
body: <p>I have an array of 6 values, of which want 4 unique random values.</p>
  <p>Currently, I retrieve 4 random values from the list, but not unique.</p>
  <p>When I try and check the value already exists it doesn't seem to work correctly.</p>
  <p>Is my logic what is wrong? If so could someone point me in the right direction?</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 Teams = ["Tetra", "Tiny Tetra", "Tetra terriers", "OneSeasonWonders", "Yurtie Ahern", "Liverpool"];
  
  for (let i = 0; i &lt; 4; i++) {
    let pickedTeam = [];
    let randomTeam = Math.floor(Math.random() * Teams.length);
    pickedFromArray = Teams[randomTeam];
    //console.log(pickedFromArray);
    if (pickedTeam.includes(pickedFromArray, 0)) {
      randomTeam = Math.floor(Math.random() * Teams.length);
    } else {
      pickedTeam.push(pickedFromArray);
    }
    console.log("Slot " + i + " - " + pickedTeam);
  }</code></pre>
  </div>
  </div>
  </p>