export const toName = (object: { name: string }) => object.name