6 lines
169 B
TypeScript
6 lines
169 B
TypeScript
![]() |
export function getInitials(firstname: string, secondname: string) {
|
|||
|
return firstname[0] && secondname[0]
|
|||
|
? firstname[0] + secondname[0]
|
|||
|
: "АА";
|
|||
|
}
|