create a variants of products : Im looking for an **efficient way** to group a different types of products variants.
I have this json file, and inside each product I have an different type of attributes.

**attributes:** [

{title: color, labels: [{title: red}, {title: blue}]},

{title: brand, labels: [{title: nike}, {title: rebook}]},

{title: size, labels: [{title: 38}, {title: 40}]

]

and it can have more/less attributes.

**I need to create an efficient function that will return:** 

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'

]

pls help :D
