title: Return ALL intersections array javascript
body: <p>My current code: </p>
  
  <pre><code>    function intersect(first, second) {
      var temp = [];
      for(var i = 0; i &lt; first.length; i++){
          for(var k = 0; k &lt; second.length; k++){
              if(first[i] == second[k]){
                  temp.push( first[i]);
                  break;
              }
          }
      }
  
    return temp;
  }
  </code></pre>
  
  <p>How can I change this so it returns ALL the intersections indices?</p>