{#each selected_array as _, index}
{#each values as value} {/each}

{selected_array[index].map(v => v.name).join(', ')}

{/each}