title: Flatten nested objects using Lodash
body: <p>I'm looping over object with a property set to array, which i then use in the following way:</p>
  
  <pre><code>  let merged= [];
    for (let sup of superObject) {
      let sname = sup.superObjectName;
      for (let sub of sup.subObject) {
        merged.push({superObject: sname, subObject: sub.subObjectName})
      }
    }
  </code></pre>
  
  <p>Now the code above works and get job done but i feel it can be improved using Lodash and i cant get it to work. i tried using <code>flatMap</code> in few different ways but  none seem to work, and the one in the right direction in terms of functionality wont seem like an improvement at all. 
  Any ideas?</p>
  
  <p><strong>UPDATE:</strong> 
  <code>superObject</code> example:</p>
  
  <pre><code>{
     superObjectName: "someName",
     subObject: [
        {subObjectName: "someSubName"},
        {subObjectName: "someSubName2"}
      ]
   }
  </code></pre>