I want to separate color, size, material etc where a and b array always same length.
a = ["Color", "Color", "color", "color", "Size", "size"]
b = ["black", "red", "blue", "green", "small", "large"]
i want
output = [['black','red','blue','green'], ['small','large'],...]
aandbalways be the same length?{ color: ['black', 'red', 'blue', 'green'], size: ['small', 'large'] }make more sense?