Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

325 B
Raw Blame
export const getFirstLastName = (trimmedName: string, trimmedUsername: string) => {
  const [firstName = '', lastName = '']: string[] =
    // eslint-disable-next-line no-unsafe-optional-chaining
    trimmedName || trimmedUsername ? (trimmedName || trimmedUsername)?.split(' ') : ['', ''];
  return [firstName, lastName];
};