@tremendous/help
    Preparing search index...

    Function 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.

      Parameters

      • OptionalfullName: string

        The full name to extract initials from.

      Returns string

      • The initials of the full name in uppercase.
      initials("John Doe"); // "JD"
      initials("Alice Bob Carol"); // "ABC"
      initials(); // ""