Function getNameInitials

  • Generate initials from a name

    Parameters

    • name: string

    Returns string

  • Generate initials from a first and last name

    Parameters

    • firstName: string

      First Name

    • lastName: undefined | string

      Last Name

    Returns string