problem background: when you encounter this requirement in development, if the objects in an array are in the following format, can you do Cartesian product operation according to the difference of sidePos to get the following strings of different sidePos fields? The test field does not have any meaning, but only indicates the field name
item.value = `{"test": {"sidePos": "", "val": 0}, {"sidePos": "", "val": 1}}`
item.value = `{"test": {"sidePos": "", "val": 0}, {"sidePos": "", "val": 4}}`
item.value = `{"test": {"sidePos": "", "val": 2}, {"sidePos": "", "val": 1}}`
item.value = `{"test": {"sidePos": "", "val": 2}, {"sidePos": "", "val": 4}}`
item.value = `{"test": {"sidePos": "", "val": 3}, {"sidePos": "", "val": 1}}`
item.value = `{"test": {"sidePos": "", "val": 3}, {"sidePos": "", "val": 4}}`
beginners ask for advice ~