Code snippet:
interface Named { firstName: string lastName: string } const makeFullName = (item: Named) => ({ ...item, fullName: `${item.firstName