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