MCPcopy Create free account
hub / github.com/dailydotdev/apps / concatStrings

Function concatStrings

packages/shared/src/lib/strings.ts:67–72  ·  view source on GitHub ↗
(
  strings: Array<string | null | undefined>,
  separator = ', ',
)

Source from the content-addressed store, hash-verified

65 `${word}${count === 1 ? '' : append}`;
66
67export const concatStrings = (
68 strings: Array<string | null | undefined>,
69 separator = ', ',
70): string => {
71 return strings.filter(Boolean).join(separator);
72};
73
74/**
75 * Generates a display name from an email address.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected