by temp24582934 · 5y ago · 0 comments
function getEmails(group: Array<{email: string}>) {
return group.map((p) => p.email)
}
which leaves the function more open ended than relying on an explicitly named interface that other types then have to inherit from.