title: Compare Two Array in Javascript/AngularJS
body: <p>I want to check two array values are same or not. I am using a form with checkboxes. need show any change in checkbox array or not?. can anyone help me. Two arrays Like this.</p>
  
  <pre><code>array1 = ['1','2','3']; //previous checklist
  array2 = ['3','2','1']; //new checklist
  </code></pre>