title: Lodash method to check whether all elements in an array are in another array
body: <p>I have 2 arrays of string. I want to make sure all elements of the second array are in the first. I use Lodash/Underscore for things like this. Its easy when checking if one astring is in an array:</p>
  
  <pre><code>var arr1 = ['a', 'b', 'c', 'd'];
  _.includes(arr1, 'b');
  // =&gt; true
  </code></pre>
  
  <p>But when its an array, I cant see a current method to do it. What I've done is:</p>
  
  <pre><code>var arr1 = ['a', 'b', 'c', 'd'];
  var arr2 = ['a', 'b', 'x'];
  
  var intersection = _.intersection(arr1, arr2);
  
  console.log('intersection is ', intersection);
  
  if (intersection.length &lt; arr2.length) {
      console.log('no');
  } else {
      console.log('yes');
  }
  </code></pre>
  
  <p>Fiddle is <a href="https://jsfiddle.net/654rcurq/" rel="nofollow">here</a>. But its rather long-winded. Is there a built in Lodash method?</p>