# initialsOf (@salmonui/layout/avatar)

> The initialsOf function of @salmonui/layout/avatar: Initials of a name: the first letter of the first and of the last word (one letter for a single word), upper-cased for locale.

Canonical: https://salmonui.dev/docs/reference/layout/avatar/initialsOf

```ts
import { initialsOf } from '@salmonui/layout/avatar';
```

Entry index: https://salmonui.dev/docs/reference/layout/avatar (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/layout/avatar.md).

## Reference

Kind: function

```ts
function initialsOf(name: string, locale?: string | readonly string[]): string;
```

Initials of a name: the first letter of the first and of the last word
(one letter for a single word), upper-cased for `locale`.
