MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / cohortMembersToCSV

Function cohortMembersToCSV

apps/start/src/utils/csv-download.ts:26–29  ·  view source on GitHub ↗
(profileIds: string[])

Source from the content-addressed store, hash-verified

24}
25
26export function cohortMembersToCSV(profileIds: string[]): string {
27 if (!profileIds.length) return '';
28 return buildCSV([['profile_id'], ...profileIds.map((id) => [id])]);
29}

Callers 2

handleDownloadFunction · 0.90
handleDownloadFunction · 0.90

Calls 2

buildCSVFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected