title: Filter array of object from another array
body: <p>I have two arrays. I want to filter one array which contains objects from another array.</p>
  
  <pre><code>let array1= [{date:1, count:4}, {date:3, count:6}];
  let array2= [1,2,3,4];
  </code></pre>
  
  <p>After filtering these two arrays, I need filtered arrays as below.</p>
  
  <pre><code>let array= [4,0,6,0];
  </code></pre>
  
  <p>So, the filtered array contains the count for matched date and zero for unmatched values. But I'm getting only matched data.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>let array = _.map(_.filter(array1, function(o){
      return _.includes(array2, o.date);
  }), 'count');
  </code></pre>
  
  <p>Thank you</p>