Get initials from a display name.
The display name
Initials (up to 2 characters)
getInitials('John Doe'); // "JD"getInitials('Alice'); // "A" Copy
getInitials('John Doe'); // "JD"getInitials('Alice'); // "A"
Get initials from a display name.