title: Determining whether one array contains the contents of another array in JavaScript/CoffeeScript
body: <p>In JavaScript, how do I test that one array has the elements of another array?</p>
  
  <pre><code>arr1 = [1, 2, 3, 4, 5]
  [8, 1, 10, 2, 3, 4, 5, 9].function_name(arr1) # =&gt; true
  </code></pre>