{#each selected_array as _, index}
{#each values as value}
{value.name}
{/each}
{selected_array[index].map(v => v.name).join(', ')}
{/each}