title: Check whether an array exists in an array of arrays?
body: <p>I'm using JavaScript, and would like to check whether an array exists in an array of arrays. </p>
  
  <p>Here is my code, along with the return values: </p>
  
  <pre><code>var myArr = [1,3];
  var prizes = [[1,3],[1,4]];
  prizes.indexOf(myArr);
  -1
  </code></pre>
  
  <p>Why? </p>
  
  <p>It's the same in jQuery: </p>
  
  <pre><code>$.inArray(myArr, prizes);
  -1
  </code></pre>
  
  <p>Why is this returning -1 when the element is present in the array?</p>