Extracts the initials from a full name.
This function takes a full name as input and returns the initials in uppercase. If the full name is not provided, it returns an empty string.
Optional
The full name to extract initials from.
initials("John Doe"); // "JD"initials("Alice Bob Carol"); // "ABC"initials(); // "" Copy
initials("John Doe"); // "JD"initials("Alice Bob Carol"); // "ABC"initials(); // ""
Extracts the initials from a full name.
This function takes a full name as input and returns the initials in uppercase. If the full name is not provided, it returns an empty string.