MCPcopy Create free account
hub / github.com/simstudioai/sim / formatAttendees

Function formatAttendees

apps/sim/connectors/google-calendar/google-calendar.ts:88–94  ·  view source on GitHub ↗

* Formats attendees into a comma-separated list of names/emails.

(attendees?: CalendarAttendee[])

Source from the content-addressed store, hash-verified

86 * Formats attendees into a comma-separated list of names/emails.
87 */
88function formatAttendees(attendees?: CalendarAttendee[]): string {
89 if (!attendees || attendees.length === 0) return ''
90 return attendees
91 .filter((a) => !a.resource)
92 .map((a) => a.displayName || a.email || 'Unknown')
93 .join(', ')
94}
95
96/**
97 * Formats an organizer into a display string.

Callers 1

eventToContentFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected