Skip to content

The open alternative to Salesforce, designed for AI.

285 B
Raw Blame
import { isNonEmptyString } from '@sniptt/guards';

export const getAttendeeName = (
  nameParts:
    | { firstName?: string | null; lastName?: string | null }
    | null
    | undefined,
) =>
  [nameParts?.firstName, nameParts?.lastName]
    .filter(isNonEmptyString)
    .join(' ');