title: Find if object's array has elements from another array using Lodash
body: <p>There is an array of products, each product has structure like this: </p>
  
  <pre><code>{
    id: 1,
    name: "product 1",
    materials: [
      {
        id: 1,
        name: "material 1"
      },
      {
        id: 2,
        name: "material 2"
      },
      {
        id: 3,
        name: "material 3"
      }
    ]
  }
  </code></pre>
  
  <p>Each product has an array with different quantity of materials.</p>
  
  <p>Also there is an array of material IDs, for example <code>[1, 4, 7, 2, 5]</code>.</p>
  
  <p>How can I filter the array of products to leave only products, where materials has IDs which are in the array of materials IDs?</p>