Skip to content

The open alternative to Salesforce, designed for AI.

161 B
Raw Blame
export const formatList = (items: string[]) =>
  items.length <= 1
    ? items.join('')
    : `${items.slice(0, -1).join(', ')} and ${items[items.length - 1]}`;