Finding all combination of items in a string to then present to participant

Hi! I just tried this, and it works fine:

combinations = combo_list.flatMap(
    (v, i) => combo_list.slice(i+1).map( w => (v + ' ' + w).split(" ") )
);

Note: the var is gone and the string is split into two elements. So you can use the two elements of each combination by combinations[trialnumber][0] and combinations[trialnumber][1]