Library API
    Preparing search index...

    Function toUpper

    • Coerces a value to a string, converts it to uppercase, and trims whitespace.

      Type Parameters

      • T

      Parameters

      • str: T

        The value to convert

      Returns string | T

      The uppercased and trimmed string

      toUpper(' hello '); // 'HELLO'