title: Check if array contains all elements of another array
body: <p>I want a function that returns <code>true</code> if and only if a given array includes all the elements of a given &quot;target&quot; array. As follows.</p>
  <pre><code>const target = [ 1, 2, 3,    ];
  const array1 = [ 1, 2, 3,    ]; // true
  const array2 = [ 1, 2, 3, 4, ]; // true
  const array3 = [ 1, 2,       ]; // false
  </code></pre>
  <p>How can I accomplish the above result?</p>