Skip to main content

formatUserShortName()

function formatUserShortName(fullName: string): string;

Returns a person's first name and the initial of their last name.

Parameters​

ParameterTypeDescription
fullNamestringThe person's full name, such as a user's name or fullName

Returns​

string

The same as getShortName

Deprecated​

Use getShortName instead, which this calls. It used to take the initial from the second word, which no longer matches the Todoist apps.