I have an unpredictable number of arrays as showed on the picture below.
Using linq for js I would like to get a Cartesian product of these arrays ie.
{
{AttributeTypeId: 10, AttributeId: 34, AttributeName: "b11 13-128"}
{AttributeTypeId: 11, AttributeId: 56, AttributeName: "21/uk4"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
},
{AttributeTypeId: 10, AttributeId: 33, AttributeName: "b10 13-128"},
{AttributeTypeId: 11, AttributeId: 56, AttributeName: "21/uk4"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
},
{
{AttributeTypeId: 10, AttributeId: 38, AttributeName: "G01 13-102"},
{AttributeTypeId: 11, AttributeId: 56, AttributeName: "21/uk4"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
},
{
{AttributeTypeId: 10, AttributeId: 34, AttributeName: "b11 13-128"},
{AttributeTypeId: 11, AttributeId: 54, AttributeName: "19/uk3"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
}
....
etc.
How can I achieve it ?

For every array you want in the result, just add a select many.
This is the equivalent to the query syntax: