title: Create variants of products
body: <p>I'm looking for an <strong>efficient way</strong> to group different types of product variants.</p>
  
  <p>I have this <code>json</code> file, and inside each product I have an different type of attributes.</p>
  
  <pre><code>Attributes: [
  
      {title: color, labels: [{title: red}, {title: blue}]},
  
      {title: brand, labels: [{title: nike}, {title: rebook}]},
  
      {title: size, labels: [{title: 38}, {title: 40}]
  
  ]
  </code></pre>
  
  <p>and it can have more/less attributes.</p>
  
  <p>I need to create an efficient function that will return:</p>
  
  <pre><code>variants: [
  
      'red nike 38',
  
      'red nike 40',
  
      'blue nike 38',
  
      'blue nike 40',
  
      'red rebook 38',
  
      'red rebook 40',
  
      'blue rebook 38',
  
      'blue rebook 40'
  
  ]
  </code></pre>