title: How to check if two arrays are equal with JavaScript?
body: <pre><code>var a = [1, 2, 3];
  var b = [3, 2, 1];
  var c = new Array(1, 2, 3);
  
  alert(a == b + "|" + b == c);
  </code></pre>
  
  <p><a href="http://jsfiddle.net/YrMyc/3/" rel="noreferrer">demo</a></p>
  
  <p>How can I check these array for equality and get a method which returns <code>true</code> if they are equal?</p>
  
  <p>Does jQuery offer any method for this?</p>