Hey, there is a more efficient way of doing this, check this out
Also here is the code I’m using for the formula with the courtesy of Claude:
colors.flatMap((color) => sizes.map((size) => ({ color, size })))
Hey, there is a more efficient way of doing this, check this out
Also here is the code I’m using for the formula with the courtesy of Claude:
colors.flatMap((color) => sizes.map((size) => ({ color, size })))