title: Use lodash groupBy function to categorize objects in an array
body: <p>i have an array of products that each product has a category object. I need to organize by category and include the category object. GroupBy function include only one parameter.  </p>
  
  <p>the array of products </p>
  
  <pre><code>const data = [   
    {id: 1, 'name': 'produto1', category: {id: 1, name: 'shirts', description: 'super roupa'}},
    {id: 2, 'name': 'produto2', category: {id: 1, name: 'shirts', description: 'super roupa'}},
    {id: 3, 'name': 'produto3', category: {id: 2, name: 'jackets', description: 'super jackets'}},
    {id: 4, 'name': 'produto4', category: {id: 2, name: 'jackets', description: 'super jackets'}},    
  ]
  </code></pre>
  
  <p>expected result: </p>
  
  <pre><code>[
    {
      category: {id: 1, name: 'clothes', description: 'super roupa'}, 
      products:[{id:1, name: 'produt1'}, {id: 2, name: 'produto1'} ]
    },
    {
      category: {id: 2, name: 'jackets', description: 'super jackets'}, 
      products:[{id:3, name: 'produt3'}, {id: 4, name: 'produto4'} ]
    },
  ]
  </code></pre>