UIKit/lib/utils/getInitials.ts

6 lines
169 B
TypeScript
Raw Normal View History

2023-08-22 12:39:03 +00:00
export function getInitials(firstname: string, secondname: string) {
return firstname[0] && secondname[0]
? firstname[0] + secondname[0]
: "АА";
}