Function toUpperCase

Converts a string to uppercase returning Uppercase as type

toUpperCase('Hello, world!') // 'HELLO, WORLD!'
  • Type Parameters

    • S extends string

      The string type.

    Parameters

    • s: S

      The string to convert.

    Returns Uppercase<S>

    The converted string.