• Replace all non-word characters with a space, then replace all spaces with nothing, then replace all lowercase letters that follow a non-word character with an uppercase letter, then replace all spaces with nothing.

    Parameters

    • str: string

      The string to convert.

    Returns string

    A string with the first letter capitalized.

Generated using TypeDoc